Add PNP info to PCI attachment of amr driver
Reviewed by: imp, chuck Submitted by: Lakhan Shiva Kamireddy <lakhanshiva@gmail.com> Sponsored by: Google, Inc. (GSoC 2018)
This commit is contained in:
parent
c881a6c373
commit
764432a467
@ -116,15 +116,10 @@ static driver_t amr_pci_driver = {
|
|||||||
sizeof(struct amr_softc)
|
sizeof(struct amr_softc)
|
||||||
};
|
};
|
||||||
|
|
||||||
static devclass_t amr_devclass;
|
|
||||||
DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0);
|
|
||||||
MODULE_DEPEND(amr, pci, 1, 1, 1);
|
|
||||||
MODULE_DEPEND(amr, cam, 1, 1, 1);
|
|
||||||
|
|
||||||
static struct amr_ident
|
static struct amr_ident
|
||||||
{
|
{
|
||||||
int vendor;
|
uint16_t vendor;
|
||||||
int device;
|
uint16_t device;
|
||||||
int flags;
|
int flags;
|
||||||
#define AMR_ID_PROBE_SIG (1<<0) /* generic i960RD, check signature */
|
#define AMR_ID_PROBE_SIG (1<<0) /* generic i960RD, check signature */
|
||||||
#define AMR_ID_DO_SG64 (1<<1)
|
#define AMR_ID_DO_SG64 (1<<1)
|
||||||
@ -144,6 +139,13 @@ static struct amr_ident
|
|||||||
{0, 0, 0}
|
{0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static devclass_t amr_devclass;
|
||||||
|
DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0);
|
||||||
|
MODULE_PNP_INFO("U16:vendor;U16:device", pci, amr, amr_device_ids,
|
||||||
|
sizeof(amr_device_ids[0]), nitems(amr_device_ids) - 1);
|
||||||
|
MODULE_DEPEND(amr, pci, 1, 1, 1);
|
||||||
|
MODULE_DEPEND(amr, cam, 1, 1, 1);
|
||||||
|
|
||||||
static struct amr_ident *
|
static struct amr_ident *
|
||||||
amr_find_ident(device_t dev)
|
amr_find_ident(device_t dev)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user