diff options
Diffstat (limited to 'main/common/devices.h')
-rw-r--r-- | main/common/devices.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/main/common/devices.h b/main/common/devices.h index 62f7e8f..5977410 100644 --- a/main/common/devices.h +++ b/main/common/devices.h @@ -1,7 +1,7 @@ /************************************************************************** * * Copyright (c) 2013 Alcatel-Lucent - * + * * Alcatel Lucent licenses this file to You under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. A copy of the License is contained the @@ -32,34 +32,34 @@ #define _DEVICES_H_ struct device { - int (*init)(unsigned long); - int (*ctrl)(int,unsigned long,unsigned long); - int (*open)(unsigned long,unsigned long); - int (*close)(int); - int (*read)(char *,int); - int (*write)(char *,int); - char *name; + int (*init)(unsigned long); + int (*ctrl)(int,unsigned long,unsigned long); + int (*open)(unsigned long,unsigned long); + int (*close)(int); + int (*read)(char *,int); + int (*write)(char *,int); + char *name; }; -extern struct device devtbl[]; +extern struct device devtbl[]; /* Generic driver functions: */ -extern int open(int, unsigned long, unsigned long); -extern int close(int); -extern int read(int, char *, int); -extern int write(int, char *, int); -extern int init(int, unsigned long); -extern int ioctl(int, int, unsigned long, unsigned long); -extern int devInit(int); -extern int isbaddev(int); -extern void devtbldump(void); +extern int open(int, unsigned long, unsigned long); +extern int close(int); +extern int read(int, char *, int); +extern int write(int, char *, int); +extern int init(int, unsigned long); +extern int ioctl(int, int, unsigned long, unsigned long); +extern int devInit(int); +extern int isbaddev(int); +extern void devtbldump(void); /* Common ioctl definitions: */ -#define INIT 1 -#define GOTACHAR 2 -#define SETBAUD 3 +#define INIT 1 +#define GOTACHAR 2 +#define SETBAUD 3 -#define nodriver 0 +#define nodriver 0 extern int ConsoleDevice; #endif |