diff options
Diffstat (limited to 'sys/dev/scd/scd.c')
-rw-r--r-- | sys/dev/scd/scd.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 15ad25e..7eeca7b 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.39 1998/07/04 22:30:17 julian Exp $ */ +/* $Id: scd.c,v 1.40 1998/07/13 09:53:02 bde Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -201,7 +201,8 @@ static struct cdevsw scd_cdevsw = { D_DISK, 0, -1 }; -int scd_attach(struct isa_device *dev) +static int +scd_attach(struct isa_device *dev) { int unit = dev->id_unit; struct scd_data *cd = scd_data + unit; @@ -694,7 +695,13 @@ scd_subchan(int unit, struct ioc_read_subchannel *sc) return 0; } -int +static __inline void +write_control(unsigned port, unsigned data) +{ + outb(port + OREG_CONTROL, data); +} + +static int scd_probe(struct isa_device *dev) { struct sony_drive_configuration drive_config; @@ -1285,12 +1292,6 @@ read_toc(dev_t dev) return 0; } -static __inline void -write_control(unsigned port, unsigned data) -{ - outb(port + OREG_CONTROL, data); -} - static void init_drive(unsigned unit) { |