Browse Source

Add the pcisata driver in the sys/dev/pci/pcisata.c --2008-8-21,else need sys/dev/pci/sata_8620.h, include/part.h,ide.h,fis.h,libata.h.In the pmon/dev/devfs.c add the sata opration functions predefined .

master
root 16 years ago
parent
commit
9ced680696
  1. 2
      Targets/Bonito2edev/conf/Bonito
  2. 2
      Targets/Bonito2fdev/conf/Bonito.2fdev.via
  3. 10
      pmon/fs/devfs.c
  4. 6
      sys/dev/pci/files.pci

2
Targets/Bonito2edev/conf/Bonito

@ -152,7 +152,7 @@ em* at pci? dev ? function ? #intel 82541 device
#### IDE controllers
pciide* at pci ? dev ? function ? flags 0x0000
sata* at pci? dev ? function ? #atp8620
#### IDE hard drives
wd* at pciide? channel ? drive ? flags 0x0000

2
Targets/Bonito2fdev/conf/Bonito.2fdev.via

@ -151,7 +151,7 @@ ste* at pci? dev ? function ?
#### IDE controllers
pciide* at pci ? dev ? function ? flags 0x0000
sata* at pci? dev ? function ? #ATP-8620 SATA driver
#### IDE hard drives
wd* at pciide? channel ? drive ? flags 0x0000

10
pmon/fs/devfs.c

@ -98,6 +98,13 @@ extern int loopdevread __P((dev_t dev, void *uio, int flag));
extern int loopdevwrite __P((dev_t dev, void *uio, int flag));
extern int loopdevclose __P((dev_t dev, int flag, int mode, void *));
#if 1
extern int sata_open __P((dev_t dev, int flags, int mode, void *));
extern int sata_read __P((dev_t dev, void *uio, int flag));
extern int sata_write __P((dev_t dev, void *uio, int flag));
extern int sata_close __P((dev_t dev, int flag, int mode, void *));
#endif
/*
* Check for and add any target specific declarations from "pmon_target.h"
*/
@ -135,6 +142,9 @@ struct devsw devswitch[] = {
#endif
#if NLOOPDEV > 0
{ "loopdev", loopdevopen, loopdevread, loopdevwrite, loopdevclose},
#endif
#if 1
{ "sata", sata_open, sata_read, sata_write, sata_close},
#endif
/* Add any target specific devices. See "pmon_target.h" */
#if defined(TGT_DEV_SWITCH)

6
sys/dev/pci/files.pci

@ -98,3 +98,9 @@ file sys/dev/pci/rtl8169.c rtk
device ste: ether, ifnet
attach ste at pci
file sys/dev/pci/sundance.c ste
# PCI-SATA driver added by zgj
device sata
attach sata at pci
file sys/dev/pci/pcisata.c sata

Loading…
Cancel
Save