summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr/bktr_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/bktr/bktr_os.c')
-rw-r--r--sys/dev/bktr/bktr_os.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c
index d7bd9ba..87d4ed9 100644
--- a/sys/dev/bktr/bktr_os.c
+++ b/sys/dev/bktr/bktr_os.c
@@ -580,7 +580,7 @@ get_bktr_mem( int unit, unsigned size )
*
*/
static int
-bktr_open( dev_t dev, int flags, int fmt, struct thread *td )
+bktr_open( struct cdev *dev, int flags, int fmt, struct thread *td )
{
bktr_ptr_t bktr;
int unit;
@@ -680,7 +680,7 @@ bktr_open( dev_t dev, int flags, int fmt, struct thread *td )
*
*/
static int
-bktr_close( dev_t dev, int flags, int fmt, struct thread *td )
+bktr_close( struct cdev *dev, int flags, int fmt, struct thread *td )
{
bktr_ptr_t bktr;
int unit;
@@ -719,7 +719,7 @@ bktr_close( dev_t dev, int flags, int fmt, struct thread *td )
*
*/
static int
-bktr_read( dev_t dev, struct uio *uio, int ioflag )
+bktr_read( struct cdev *dev, struct uio *uio, int ioflag )
{
bktr_ptr_t bktr;
int unit;
@@ -747,7 +747,7 @@ bktr_read( dev_t dev, struct uio *uio, int ioflag )
*
*/
static int
-bktr_write( dev_t dev, struct uio *uio, int ioflag )
+bktr_write( struct cdev *dev, struct uio *uio, int ioflag )
{
return( EINVAL ); /* XXX or ENXIO ? */
}
@@ -757,7 +757,7 @@ bktr_write( dev_t dev, struct uio *uio, int ioflag )
*
*/
static int
-bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td )
+bktr_ioctl( struct cdev *dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td )
{
bktr_ptr_t bktr;
int unit;
@@ -789,7 +789,7 @@ bktr_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int flag, struct thread *td
*
*/
static int
-bktr_mmap( dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot )
+bktr_mmap( struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot )
{
int unit;
bktr_ptr_t bktr;
@@ -820,7 +820,7 @@ bktr_mmap( dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot )
}
static int
-bktr_poll( dev_t dev, int events, struct thread *td)
+bktr_poll( struct cdev *dev, int events, struct thread *td)
{
int unit;
bktr_ptr_t bktr;
OpenPOWER on IntegriCloud