diff options
-rw-r--r-- | sys/dev/pci/bktr/bktr_os.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/pci/bktr/bktr_os.c b/sys/dev/pci/bktr/bktr_os.c index 118bf1581db..4c7bd3a9e58 100644 --- a/sys/dev/pci/bktr/bktr_os.c +++ b/sys/dev/pci/bktr/bktr_os.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_os.c,v 1.17 2004/05/24 21:45:36 mickey Exp $ */ +/* $OpenBSD: bktr_os.c,v 1.18 2004/05/24 21:56:41 mickey Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_os.c,v 1.20 2000/10/20 08:16:53 roger Exp $ */ /* @@ -556,7 +556,7 @@ get_bktr_mem( int unit, unsigned size ) /* * */ -int +static int bktr_open( dev_t dev, int flags, int fmt, struct proc *p ) { bktr_ptr_t bktr; @@ -636,7 +636,7 @@ bktr_open( dev_t dev, int flags, int fmt, struct proc *p ) /* * */ -int +static int bktr_close( dev_t dev, int flags, int fmt, struct proc *p ) { bktr_ptr_t bktr; @@ -675,7 +675,7 @@ bktr_close( dev_t dev, int flags, int fmt, struct proc *p ) /* * */ -int +static int bktr_read( dev_t dev, struct uio *uio, int ioflag ) { bktr_ptr_t bktr; @@ -703,7 +703,7 @@ bktr_read( dev_t dev, struct uio *uio, int ioflag ) /* * */ -int +static int bktr_write( dev_t dev, struct uio *uio, int ioflag ) { return( EINVAL ); /* XXX or ENXIO ? */ @@ -713,7 +713,7 @@ bktr_write( dev_t dev, struct uio *uio, int ioflag ) /* * */ -int +static int bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct proc* pr ) { bktr_ptr_t bktr; @@ -745,7 +745,7 @@ bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct proc* pr ) /* * */ -int +static int bktr_mmap( dev_t dev, vm_offset_t offset, int nprot ) { int unit; @@ -775,7 +775,8 @@ bktr_mmap( dev_t dev, vm_offset_t offset, int nprot ) return( atop(vtophys(bktr->bigbuf) + offset) ); } -int bktr_poll( dev_t dev, int events, struct proc *p) +static int +bktr_poll( dev_t dev, int events, struct proc *p) { int unit; bktr_ptr_t bktr; |