1 /* 2 * include/linux/amlogic/major.h 3 * 4 * Copyright (C) 2017 Amlogic, Inc. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 * more details. 15 * 16 */ 17 18 #ifndef _LINUX_MAJOR_H 19 #define _LINUX_MAJOR_H 20 #include <linux/fs.h> 21 22 /* Amlogic extension */ 23 #define CHRDEV_MAJOR_HASH_SIZE 255 24 25 #define AML_BASE CHRDEV_MAJOR_HASH_SIZE 26 #define AMSTREAM_MAJOR (0 + (AML_BASE)) 27 #define AUDIODSP_MAJOR (2 + (AML_BASE)) 28 #define FIRMWARE_MAJOR (3 + (AML_BASE)) 29 #define AMVIDEO_MAJOR (9 + (AML_BASE)) 30 #define AMAUDIO_MAJOR (11 + (AML_BASE)) 31 #define AMVIDEO2_MAJOR (12 + (AML_BASE)) 32 #define AMAUDIO2_MAJOR (13 + (AML_BASE)) 33 #define VFM_MAJOR (14 + (AML_BASE)) 34 #define IONVIDEO_MAJOR (15 + (AML_BASE)) 35 #define VAD_MAJOR (16 + (AML_BASE)) 36 #define VIDEOSYNC_MAJOR (17 + (AML_BASE)) 37 #define VDETECT_MAJOR (22 + (AML_BASE)) 38 /* 39 *#define UIO_MAJOR 4+(AML_BASE) 40 *#define USB_DEV_EP_MAJOR 5+(AML_BASE) 41 *#define TV_CONF_MAJOR 6+(AML_BASE) 42 *#define HIDRAW_MAJOR 7+(AML_BASE) 43 *#define HWJPEGDEC_MAJOR 8+(AML_BASE) 44 * 45 *#define AML_DEMOD_MAJOR 10+(AML_BASE) 46 *#define TV2_CONF_MAJOR 13+(AML_BASE) 47 *#define BLOCK_EXT_MAJOR 14+(AML_BASE) 48 *#define SCSI_OSD_MAJOR 15+(AML_BASE) 49 */ 50 #endif 51