]> Zhao Yanbai Git Server - minix.git/commitdiff
minix/dmap.h: Add USB device major range
authorLionel Sambuc <lionel@minix3.org>
Tue, 3 Jun 2014 08:11:48 +0000 (10:11 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:41 +0000 (17:05 +0200)
Change-Id: Ic7fdba4f71e55c8a7c0477ec9ec61aa7fa85a391

commands/devmand/main.c
include/minix/dmap.h

index 343ef6c9dea017199ba8ecd6cdd2cfb8a48adf19..9d840a6ef28c0f6b97f4d8397124a05f4f0e7e20 100644 (file)
@@ -8,6 +8,7 @@
 #include <dirent.h>
 #include <assert.h>
 #include <signal.h>
+#include <minix/dmap.h>
 #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};
 
index f754bcae9290e95b6c6a77507edcef7bdd8c5bbf..8c84fd8c3d330fe02ce6019f43952303b1fa65d3 100644 (file)
@@ -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 */