summaryrefslogtreecommitdiffstats
path: root/sys/dev/mcd
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-10-04 02:21:26 +0000
committermdodd <mdodd@FreeBSD.org>2002-10-04 02:21:26 +0000
commit99055665a7aea346d3414d262cd72d274cab11c9 (patch)
treea7135e8cc8aa9281c96b870f3b0e26b9753e3bb5 /sys/dev/mcd
parentc475cde7a9ca20aabf47570702a283d89c7b6c5e (diff)
downloadFreeBSD-src-99055665a7aea346d3414d262cd72d274cab11c9.zip
FreeBSD-src-99055665a7aea346d3414d262cd72d274cab11c9.tar.gz
Minor style(9) changes.
Diffstat (limited to 'sys/dev/mcd')
-rw-r--r--sys/dev/mcd/mcd.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index deaaa3d..9799721 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -245,7 +245,8 @@ static struct cdevsw mcd_cdevsw = {
#define MIN_DELAY 15
#define DELAY_GETREPLY 5000000
-int mcd_attach(struct isa_device *dev)
+static int
+mcd_attach(struct isa_device *dev)
{
int unit = dev->id_unit;
struct mcd_data *cd = mcd_data + unit;
@@ -268,7 +269,8 @@ int mcd_attach(struct isa_device *dev)
return 1;
}
-int mcdopen(dev_t dev, int flags, int fmt, struct thread *td)
+static int
+mcdopen(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit,part,phys,r,retry;
struct mcd_data *cd;
@@ -360,7 +362,8 @@ MCD_TRACE("open: partition=%d, disksize = %ld, blksize=%d\n",
return ENXIO;
}
-int mcdclose(dev_t dev, int flags, int fmt, struct thread *td)
+static int
+mcdclose(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit,part;
struct mcd_data *cd;
@@ -384,7 +387,7 @@ int mcdclose(dev_t dev, int flags, int fmt, struct thread *td)
return 0;
}
-void
+static void
mcdstrategy(struct bio *bp)
{
struct mcd_data *cd;
@@ -455,7 +458,8 @@ done:
return;
}
-static void mcd_start(int unit)
+static void
+mcd_start(int unit)
{
struct mcd_data *cd = mcd_data + unit;
struct partition *p;
@@ -502,7 +506,8 @@ static void mcd_start(int unit)
return;
}
-int mcdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
+static int
+mcdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
{
struct mcd_data *cd;
int unit,part,retry,r;
@@ -622,7 +627,8 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd);
/* this could have been taken from scsi/cd.c, but it is not clear
* whether the scsi cd driver is linked in
*/
-static int mcd_getdisklabel(int unit)
+static int
+mcd_getdisklabel(int unit)
{
struct mcd_data *cd = mcd_data + unit;
@@ -658,7 +664,8 @@ static int mcd_getdisklabel(int unit)
return 0;
}
-int mcdsize(dev_t dev)
+static int
+mcdsize(dev_t dev)
{
int size;
int unit = mcd_unit(dev);
@@ -715,7 +722,7 @@ twiddle_thumbs(int port, int unit, int count, char *whine)
/* check to see if a Mitsumi CD-ROM is attached to the ISA bus */
-int
+static int
mcd_probe(struct isa_device *dev)
{
int port = dev->id_iobase;
OpenPOWER on IntegriCloud