digiModel_t -> enum digi_model

Remove a forgotton and unused structure.
This commit is contained in:
Brian Somers 2001-05-17 01:42:18 +00:00
parent c19b335eac
commit ad24a43b1e
4 changed files with 8 additions and 18 deletions

View File

@ -1129,7 +1129,7 @@ digiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
return (error);
case DIGIIO_MODEL:
*(digiModel_t *)data = sc->model;
*(enum digi_model *)data = sc->model;
return (0);
case DIGIIO_IDENT:

View File

@ -180,7 +180,7 @@ struct digi_softc {
int win_bits;
int mem_size;
int mem_seg;
digiModel_t model;
enum digi_model model;
const struct digi_control_signals *csigs;
int opencnt;
unsigned pcibus : 1; /* On a PCI bus ? */

View File

@ -26,15 +26,10 @@
* $FreeBSD$
*/
typedef struct {
int32_t size;
const u_int8_t *data;
} digiDescriptor_t;
/*
* A very small subset of cards.
*/
typedef enum {
enum digi_model {
PCXE,
PCXEVE,
PCXI,
@ -42,7 +37,7 @@ typedef enum {
PCCX,
PCIEPCX,
PCIXR
} digiModel_t;
};
enum {
DIGIDB_INIT = (1<<0),
@ -62,5 +57,5 @@ enum {
#define DIGIIO_REINIT _IO('e', 'A')
#define DIGIIO_DEBUG _IOW('e', 'B', int)
#define DIGIIO_RING _IO('e', 'C')
#define DIGIIO_MODEL _IOR('e', 'D', digiModel_t)
#define DIGIIO_MODEL _IOR('e', 'D', enum digi_model)
#define DIGIIO_IDENT _IOW('e', 'E', char *)

View File

@ -26,15 +26,10 @@
* $FreeBSD$
*/
typedef struct {
int32_t size;
const u_int8_t *data;
} digiDescriptor_t;
/*
* A very small subset of cards.
*/
typedef enum {
enum digi_model {
PCXE,
PCXEVE,
PCXI,
@ -42,7 +37,7 @@ typedef enum {
PCCX,
PCIEPCX,
PCIXR
} digiModel_t;
};
enum {
DIGIDB_INIT = (1<<0),
@ -62,5 +57,5 @@ enum {
#define DIGIIO_REINIT _IO('e', 'A')
#define DIGIIO_DEBUG _IOW('e', 'B', int)
#define DIGIIO_RING _IO('e', 'C')
#define DIGIIO_MODEL _IOR('e', 'D', digiModel_t)
#define DIGIIO_MODEL _IOR('e', 'D', enum digi_model)
#define DIGIIO_IDENT _IOW('e', 'E', char *)