Create a /dev/cardbus%d.cis, to be compatible with older versions of
the software. This is a trivial amount of code to keep wireless monitoring software working... I plan on removing it in 9.0.
This commit is contained in:
parent
1c382cbab0
commit
8725ce5377
@ -118,7 +118,9 @@ cardbus_device_create(struct cardbus_softc *sc, struct cardbus_devinfo *devi,
|
||||
devi->sc_cisdev = make_dev(&cardbus_cdevsw, minor, 0, 0, 0666,
|
||||
"cardbus%d.%d.cis", device_get_unit(sc->sc_dev),
|
||||
devi->pci.cfg.func);
|
||||
/* XXX need cardbus%d.cis compat layer here ? */
|
||||
if (devi->pci.cfg.func == 0)
|
||||
devi->sc_cisdev_compat = make_dev_alias(devi->sc_cisdev,
|
||||
"cardbus%d.cis", device_get_unit(sc->sc_dev));
|
||||
devi->sc_cisdev->si_drv1 = devi;
|
||||
return (0);
|
||||
}
|
||||
@ -128,6 +130,8 @@ cardbus_device_destroy(struct cardbus_devinfo *devi)
|
||||
{
|
||||
if (devi->sc_cisdev)
|
||||
destroy_dev(devi->sc_cisdev);
|
||||
if (devi->sc_cisdev_compat)
|
||||
destroy_dev(devi->sc_cisdev_compat);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,7 @@ struct cardbus_devinfo
|
||||
} funce;
|
||||
uint32_t fepresent; /* bit mask of funce values present */
|
||||
struct cdev *sc_cisdev;
|
||||
struct cdev *sc_cisdev_compat;
|
||||
struct cis_buffer sc_cis;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user