diff options
author | eivind <eivind@FreeBSD.org> | 1999-01-12 01:29:45 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-01-12 01:29:45 +0000 |
commit | fc3558bb997a0110cc4377258014adf6289f6d06 (patch) | |
tree | b0cee9121a5b5f6676062eaf59634a20ea75b81c /sys/dev/scd | |
parent | 519075dba99baa37f25f56a73339108a4f0b0a88 (diff) | |
download | FreeBSD-src-fc3558bb997a0110cc4377258014adf6289f6d06.zip FreeBSD-src-fc3558bb997a0110cc4377258014adf6289f6d06.tar.gz |
Move a couple of functions to make __inline work. While I'm here,
split a couple of function declarations to make the style internally
consistent.
Diffstat (limited to 'sys/dev/scd')
-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) { |