Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mfi/mfi_pci.c
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
static driver_t mfi_pci_driver = { | static driver_t mfi_pci_driver = { | ||||
"mfi", | "mfi", | ||||
mfi_methods, | mfi_methods, | ||||
sizeof(struct mfi_softc) | sizeof(struct mfi_softc) | ||||
}; | }; | ||||
static devclass_t mfi_devclass; | static devclass_t mfi_devclass; | ||||
DRIVER_MODULE(mfi, pci, mfi_pci_driver, mfi_devclass, 0, 0); | |||||
MODULE_VERSION(mfi, 1); | |||||
static int mfi_msi = 1; | static int mfi_msi = 1; | ||||
SYSCTL_INT(_hw_mfi, OID_AUTO, msi, CTLFLAG_RDTUN, &mfi_msi, 0, | SYSCTL_INT(_hw_mfi, OID_AUTO, msi, CTLFLAG_RDTUN, &mfi_msi, 0, | ||||
"Enable use of MSI interrupts"); | "Enable use of MSI interrupts"); | ||||
static int mfi_mrsas_enable; | static int mfi_mrsas_enable; | ||||
SYSCTL_INT(_hw_mfi, OID_AUTO, mrsas_enable, CTLFLAG_RDTUN, &mfi_mrsas_enable, | SYSCTL_INT(_hw_mfi, OID_AUTO, mrsas_enable, CTLFLAG_RDTUN, &mfi_mrsas_enable, | ||||
0, "Allow mrasas to take newer cards"); | 0, "Allow mrasas to take newer cards"); | ||||
Show All 34 Lines | struct mfi_ident { | ||||
{0x1000, 0x0079, 0x1028, 0xffff, MFI_FLAGS_GEN2, "Dell PERC Gen2"}, | {0x1000, 0x0079, 0x1028, 0xffff, MFI_FLAGS_GEN2, "Dell PERC Gen2"}, | ||||
{0x1000, 0x0079, 0xffff, 0xffff, MFI_FLAGS_GEN2, "LSI MegaSAS Gen2"}, | {0x1000, 0x0079, 0xffff, 0xffff, MFI_FLAGS_GEN2, "LSI MegaSAS Gen2"}, | ||||
{0x1000, 0x007c, 0xffff, 0xffff, MFI_FLAGS_1078, "LSI MegaSAS 1078"}, | {0x1000, 0x007c, 0xffff, 0xffff, MFI_FLAGS_1078, "LSI MegaSAS 1078"}, | ||||
{0x1000, 0x0411, 0xffff, 0xffff, MFI_FLAGS_1064R, "LSI MegaSAS 1064R"}, /* Brocton IOP */ | {0x1000, 0x0411, 0xffff, 0xffff, MFI_FLAGS_1064R, "LSI MegaSAS 1064R"}, /* Brocton IOP */ | ||||
{0x1000, 0x0413, 0xffff, 0xffff, MFI_FLAGS_1064R, "LSI MegaSAS 1064R"}, /* Verde ZCR */ | {0x1000, 0x0413, 0xffff, 0xffff, MFI_FLAGS_1064R, "LSI MegaSAS 1064R"}, /* Verde ZCR */ | ||||
{0x1028, 0x0015, 0xffff, 0xffff, MFI_FLAGS_1064R, "Dell PERC 5/i"}, | {0x1028, 0x0015, 0xffff, 0xffff, MFI_FLAGS_1064R, "Dell PERC 5/i"}, | ||||
{0, 0, 0, 0, 0, NULL} | {0, 0, 0, 0, 0, NULL} | ||||
}; | }; | ||||
DRIVER_MODULE(mfi, pci, mfi_pci_driver, mfi_devclass, 0, 0); | |||||
MODULE_PNP_INFO("U16:vendor;U16:device;U16:subvendor;U16:subdevice", pci, mfi, | |||||
mfi_identifiers, sizeof(mfi_identifiers[0]), nitems(mfi_identifiers) - 1); | |||||
MODULE_VERSION(mfi, 1); | |||||
static struct mfi_ident * | static struct mfi_ident * | ||||
mfi_find_ident(device_t dev) | mfi_find_ident(device_t dev) | ||||
{ | { | ||||
struct mfi_ident *m; | struct mfi_ident *m; | ||||
for (m = mfi_identifiers; m->vendor != 0; m++) { | for (m = mfi_identifiers; m->vendor != 0; m++) { | ||||
if ((m->vendor == pci_get_vendor(dev)) && | if ((m->vendor == pci_get_vendor(dev)) && | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |