minix/dmap.h: Add USB device major range

Change-Id: Ic7fdba4f71e55c8a7c0477ec9ec61aa7fa85a391
This commit is contained in:
Lionel Sambuc 2014-06-03 10:11:48 +02:00
parent fc49538d86
commit e14d4863b9
2 changed files with 4 additions and 2 deletions

View file

@ -8,6 +8,7 @@
#include <dirent.h> #include <dirent.h>
#include <assert.h> #include <assert.h>
#include <signal.h> #include <signal.h>
#include <minix/dmap.h>
#include "usb_driver.h" #include "usb_driver.h"
#include "proto.h" #include "proto.h"
@ -63,7 +64,7 @@ static struct global_args args = {
.path = NULL, .path = NULL,
.config_dirs = {NULL,NULL,NULL,NULL}, .config_dirs = {NULL,NULL,NULL,NULL},
.config_dir_count = 0, .config_dir_count = 0,
.major_offset = 25, .major_offset = USB_BASE_MAJOR,
.verbose = 0, .verbose = 0,
.check_config = 0}; .check_config = 0};

View file

@ -67,8 +67,9 @@
#define BMP085B3S77_MAJOR 55 /* 55 = /dev/bmp085b3s77 (bmp085) */ #define BMP085B3S77_MAJOR 55 /* 55 = /dev/bmp085b3s77 (bmp085) */
/* 56-63 = /dev/vnd[0-7] (vnd) */ /* 56-63 = /dev/vnd[0-7] (vnd) */
#define INPUT_MAJOR 64 /* 64 = /dev/input (input) */ #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. */ /* Minor device numbers for memory driver. */
# define RAM_DEV_OLD 0 /* minor device for /dev/ram */ # define RAM_DEV_OLD 0 /* minor device for /dev/ram */