Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ioat/ioat.c
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | static struct _pcsid | ||||
{ 0x6f228086, "BDX IOAT Ch2" }, | { 0x6f228086, "BDX IOAT Ch2" }, | ||||
{ 0x6f238086, "BDX IOAT Ch3" }, | { 0x6f238086, "BDX IOAT Ch3" }, | ||||
{ 0x6f248086, "BDX IOAT Ch4" }, | { 0x6f248086, "BDX IOAT Ch4" }, | ||||
{ 0x6f258086, "BDX IOAT Ch5" }, | { 0x6f258086, "BDX IOAT Ch5" }, | ||||
{ 0x6f268086, "BDX IOAT Ch6" }, | { 0x6f268086, "BDX IOAT Ch6" }, | ||||
{ 0x6f278086, "BDX IOAT Ch7" }, | { 0x6f278086, "BDX IOAT Ch7" }, | ||||
{ 0x6f2e8086, "BDX IOAT Ch0 (RAID)" }, | { 0x6f2e8086, "BDX IOAT Ch0 (RAID)" }, | ||||
{ 0x6f2f8086, "BDX IOAT Ch1 (RAID)" }, | { 0x6f2f8086, "BDX IOAT Ch1 (RAID)" }, | ||||
{ 0x00000000, NULL } | |||||
}; | }; | ||||
MODULE_PNP_INFO("W32:vendor/device;D:human", pci, ioat, pci_ids, | |||||
sizeof(pci_ids[0]), nitems(pci_ids)); | |||||
/* | /* | ||||
* OS <-> Driver linkage functions | * OS <-> Driver linkage functions | ||||
*/ | */ | ||||
static int | static int | ||||
ioat_probe(device_t device) | ioat_probe(device_t device) | ||||
{ | { | ||||
struct _pcsid *ep; | struct _pcsid *ep; | ||||
u_int32_t type; | u_int32_t type; | ||||
type = pci_get_devid(device); | type = pci_get_devid(device); | ||||
for (ep = pci_ids; ep->type; ep++) { | for (ep = pci_ids; ep < &pci_ids[nitems(pci_ids)]; ep++) { | ||||
if (ep->type == type) { | if (ep->type == type) { | ||||
device_set_desc(device, ep->desc); | device_set_desc(device, ep->desc); | ||||
return (0); | return (0); | ||||
} | } | ||||
} | } | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,815 Lines • Show Last 20 Lines |