Free major#100
This commit is contained in:
parent
3d3bf229f9
commit
ea16f6fe64
@ -105,7 +105,6 @@
|
||||
97 *prom Alpha PROM console
|
||||
98 loe Loopback pseudo-ethernet (sbabkin@dcn.att.com)
|
||||
99 ct Cronyx/Tau serial adaptor
|
||||
100 *xrpu Xilinx Reprogrammable Processing Unit
|
||||
103 *streams SVR4 Streams emulation <newton@atdot.dotat.org>
|
||||
104 *xpt CAM Transport Layer Services
|
||||
105 *iic I2C bus generic i/o
|
||||
|
@ -172,13 +172,11 @@ static d_mmap_t elan_mmap;
|
||||
#define ELAN_MMCR 0
|
||||
#define ELAN_ERRLED 1
|
||||
|
||||
#define CDEV_MAJOR 100 /* Share with xrpu */
|
||||
static struct cdevsw elan_cdevsw = {
|
||||
.d_write = elan_write,
|
||||
.d_ioctl = elan_ioctl,
|
||||
.d_mmap = elan_mmap,
|
||||
.d_name = "elan",
|
||||
.d_maj = CDEV_MAJOR,
|
||||
};
|
||||
|
||||
static void
|
||||
@ -196,7 +194,7 @@ elan_drvinit(void)
|
||||
return;
|
||||
}
|
||||
|
||||
SYSINIT(elan, SI_SUB_PSEUDO, SI_ORDER_MIDDLE+CDEV_MAJOR,elan_drvinit,NULL);
|
||||
SYSINIT(elan, SI_SUB_PSEUDO, SI_ORDER_MIDDLE, elan_drvinit, NULL);
|
||||
|
||||
#define LED_ON() do {elan_mmcr[0xc34 / 2] = 0x200;} while(0)
|
||||
#define LED_OFF() do {elan_mmcr[0xc38 / 2] = 0x200;} while(0)
|
||||
|
@ -42,14 +42,12 @@ static d_close_t xrpu_close;
|
||||
static d_ioctl_t xrpu_ioctl;
|
||||
static d_mmap_t xrpu_mmap;
|
||||
|
||||
#define CDEV_MAJOR 100
|
||||
static struct cdevsw xrpu_cdevsw = {
|
||||
.d_open = xrpu_open,
|
||||
.d_close = xrpu_close,
|
||||
.d_ioctl = xrpu_ioctl,
|
||||
.d_mmap = xrpu_mmap,
|
||||
.d_name = "xrpu",
|
||||
.d_maj = CDEV_MAJOR,
|
||||
};
|
||||
|
||||
static MALLOC_DEFINE(M_XRPU, "xrpu", "XRPU related");
|
||||
|
Loading…
Reference in New Issue
Block a user