|
|
| version 1.4, 2003/08/07 21:16:54 | version 1.5, 2004/02/13 01:04:15 |
|---|---|
| Line 71 | Line 71 |
| * Note that the old BUS stuff also works for FreeBSD 4 and spares | * Note that the old BUS stuff also works for FreeBSD 4 and spares |
| * about 1 KB for the driver object file. | * about 1 KB for the driver object file. |
| */ | */ |
| #if __FreeBSD_version >= 400000 | #if defined(__DragonFly__) || __FreeBSD_version >= 400000 |
| #define FreeBSD_Bus_Dma_Abstraction | #define FreeBSD_Bus_Dma_Abstraction |
| #define FreeBSD_Bus_Io_Abstraction | #define FreeBSD_Bus_Io_Abstraction |
| #define FreeBSD_Bus_Space_Abstraction | #define FreeBSD_Bus_Space_Abstraction |
| Line 8868 static struct pci_device sym_pci_driver | Line 8868 static struct pci_device sym_pci_driver |
| NULL | NULL |
| }; | }; |
| #if __FreeBSD_version >= 400000 | #if defined(__DragonFly__) || __FreeBSD_version >= 400000 |
| COMPAT_PCI_DRIVER (sym, sym_pci_driver); | COMPAT_PCI_DRIVER (sym, sym_pci_driver); |
| #else | #else |
| DATA_SET (pcidevice_set, sym_pci_driver); | DATA_SET (pcidevice_set, sym_pci_driver); |
| Line 9676 int sym_cam_attach(hcb_p np) | Line 9676 int sym_cam_attach(hcb_p np) |
| * Hmmm... This should be useful, but I donnot want to | * Hmmm... This should be useful, but I donnot want to |
| * know about. | * know about. |
| */ | */ |
| #if __FreeBSD_version < 400000 | #if defined(__FreeBSD__) && __FreeBSD_version < 400000 |
| #ifdef __alpha__ | #ifdef __alpha__ |
| #ifdef FreeBSD_Bus_Io_Abstraction | #ifdef FreeBSD_Bus_Io_Abstraction |
| alpha_register_pci_scsi(pci_get_bus(np->device), | alpha_register_pci_scsi(pci_get_bus(np->device), |