diff options
author | phk <phk@FreeBSD.org> | 1999-05-07 10:11:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-07 10:11:40 +0000 |
commit | 693dd58bb3e5843d252e25a15e2cc8d49323cb82 (patch) | |
tree | a0fbea49edf11184c1bafaed7d5b3cd858742449 /sys/isa | |
parent | cfcd3ae08c30d66088e1ad5ffa68aa05b60e1bfe (diff) | |
download | FreeBSD-src-693dd58bb3e5843d252e25a15e2cc8d49323cb82.zip FreeBSD-src-693dd58bb3e5843d252e25a15e2cc8d49323cb82.tar.gz |
Continue where Julian left off in July 1998:
Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline)
function.
Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention
to the order of the cmaj/bmaj arguments!)
Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE
(ditto!)
(Next step will be to convert all bdev dev_t's to cdev dev_t's
before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/fd.c | 4 | ||||
-rw-r--r-- | sys/isa/psm.c | 6 | ||||
-rw-r--r-- | sys/isa/sio.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c index b0f13ee..c4c86ee 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -47,7 +47,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.138 1999/05/06 20:00:23 phk Exp $ + * $Id: fd.c,v 1.139 1999/05/07 07:03:24 phk Exp $ * */ @@ -2364,7 +2364,7 @@ static driver_t fd_driver = { sizeof(struct fd_data) }; -BDEV_DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, BDEV_MAJOR, CDEV_MAJOR, +DEV_DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, CDEV_MAJOR, BDEV_MAJOR, fd_cdevsw, 0, 0); #endif /* NFDC > 0 */ diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 39aaa78..70361ff 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -20,7 +20,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: psm.c,v 1.4 1999/04/16 21:22:34 peter Exp $ + * $Id: psm.c,v 1.5 1999/04/18 15:12:11 peter Exp $ */ /* @@ -2272,7 +2272,7 @@ psmresume(void *dummy) } #endif /* PSM_HOOKAPM */ -CDEV_DRIVER_MODULE(psm, atkbdc, psm_driver, psm_devclass, - CDEV_MAJOR, psm_cdevsw, 0, 0); +DEV_DRIVER_MODULE(psm, atkbdc, psm_driver, psm_devclass, + CDEV_MAJOR, NODEV, psm_cdevsw, 0, 0); #endif /* NPSM > 0 */ diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 5e27f69..5211350 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sio.c,v 1.229 1999/05/06 18:44:35 peter Exp $ + * $Id: sio.c,v 1.230 1999/05/07 06:50:27 mckusick Exp $ * from: @(#)com.c 7.5 (Berkeley) 5/16/91 * from: i386/isa sio.c,v 1.234 */ @@ -3171,5 +3171,5 @@ siopnp_attach(u_long csn, u_long vend_id, char *name, struct isa_device *dev) } #endif -CDEV_DRIVER_MODULE(sio, isa, sio_driver, sio_devclass, - CDEV_MAJOR, sio_cdevsw, 0, 0); +DEV_DRIVER_MODULE(sio, isa, sio_driver, sio_devclass, + CDEV_MAJOR, NODEV, sio_cdevsw, 0, 0); |