From: Lionel Sambuc Date: Tue, 3 Jun 2014 08:11:48 +0000 (+0200) Subject: minix/dmap.h: Add USB device major range X-Git-Tag: v3.3.0~258 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/readme1st.txt?a=commitdiff_plain;h=e14d4863b967392689f74c3e759d8ba414e2ffce;p=minix.git minix/dmap.h: Add USB device major range Change-Id: Ic7fdba4f71e55c8a7c0477ec9ec61aa7fa85a391 --- diff --git a/commands/devmand/main.c b/commands/devmand/main.c index 343ef6c9d..9d840a6ef 100644 --- a/commands/devmand/main.c +++ b/commands/devmand/main.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "usb_driver.h" #include "proto.h" @@ -63,7 +64,7 @@ static struct global_args args = { .path = NULL, .config_dirs = {NULL,NULL,NULL,NULL}, .config_dir_count = 0, - .major_offset = 25, + .major_offset = USB_BASE_MAJOR, .verbose = 0, .check_config = 0}; diff --git a/include/minix/dmap.h b/include/minix/dmap.h index f754bcae9..8c84fd8c3 100644 --- a/include/minix/dmap.h +++ b/include/minix/dmap.h @@ -67,8 +67,9 @@ #define BMP085B3S77_MAJOR 55 /* 55 = /dev/bmp085b3s77 (bmp085) */ /* 56-63 = /dev/vnd[0-7] (vnd) */ #define INPUT_MAJOR 64 /* 64 = /dev/input (input) */ +#define USB_BASE_MAJOR 65 /* 65-133 = USB major range */ -#define NR_DEVICES 65 /* number of (major) devices */ +#define NR_DEVICES 134 /* number of (major) devices */ /* Minor device numbers for memory driver. */ # define RAM_DEV_OLD 0 /* minor device for /dev/ram */