mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
ef50201a2e
commit
542f4c5c92
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335084
@ -116,15 +116,10 @@ static driver_t amr_pci_driver = {
|
||||
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
|
||||
{
|
||||
int vendor;
|
||||
int device;
|
||||
uint16_t vendor;
|
||||
uint16_t device;
|
||||
int flags;
|
||||
#define AMR_ID_PROBE_SIG (1<<0) /* generic i960RD, check signature */
|
||||
#define AMR_ID_DO_SG64 (1<<1)
|
||||
@ -144,6 +139,13 @@ static struct amr_ident
|
||||
{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 *
|
||||
amr_find_ident(device_t dev)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user