1f08c3bdfSopenharmony_ci/* 2f08c3bdfSopenharmony_ci * 3f08c3bdfSopenharmony_ci * Copyright (c) International Business Machines Corp., 2001 4f08c3bdfSopenharmony_ci * 5f08c3bdfSopenharmony_ci * This program is free software; you can redistribute it and/or modify 6f08c3bdfSopenharmony_ci * it under the terms of the GNU General Public License as published by 7f08c3bdfSopenharmony_ci * the Free Software Foundation; either version 2 of the License, or 8f08c3bdfSopenharmony_ci * (at your option) any later version. 9f08c3bdfSopenharmony_ci * 10f08c3bdfSopenharmony_ci * This program is distributed in the hope that it will be useful, 11f08c3bdfSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 12f08c3bdfSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 13f08c3bdfSopenharmony_ci * the GNU General Public License for more details. 14f08c3bdfSopenharmony_ci * 15f08c3bdfSopenharmony_ci * You should have received a copy of the GNU General Public License 16f08c3bdfSopenharmony_ci * along with this program; if not, write to the Free Software 17f08c3bdfSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18f08c3bdfSopenharmony_ci */ 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ci#define MAG_NUM 'k' 22f08c3bdfSopenharmony_ci#define MODULE_TEST_COMPONENT 0x00023000 23f08c3bdfSopenharmony_ci#define OPTION1 _IO(MAG_NUM, 1) 24f08c3bdfSopenharmony_ci#define _COMPONENT MODULE_TEST_COMPONENT 25f08c3bdfSopenharmony_ci#define TEST_DRIVER_NAME "David's include test module" 26f08c3bdfSopenharmony_ci#define DEVICE_NAME "includeTest" 27f08c3bdfSopenharmony_ci#define DEV_PATH "/dev" 28f08c3bdfSopenharmony_ci#define INCLUDE_DEVICE_PATH DEV_PATH "/" 29f08c3bdfSopenharmony_ci#define INCLUDEMAJOR 253 30f08c3bdfSopenharmony_ci#define MINOR_SHIFT_BITS 3 31f08c3bdfSopenharmony_ci#define MAX_PARTITIONS 8 32f08c3bdfSopenharmony_ci#define MAX_NUM_DISKS 3 33f08c3bdfSopenharmony_ci#define DEV_NAME "includeTest" 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_citypedef struct _incdev_cmd { 36f08c3bdfSopenharmony_ci u_int32_t cmd; 37f08c3bdfSopenharmony_ci u_int32_t status; 38f08c3bdfSopenharmony_ci} incdev_cmd_t; 39f08c3bdfSopenharmony_ci 40f08c3bdfSopenharmony_citypedef enum incdev_ioctl_cmds_s { 41f08c3bdfSopenharmony_ci INC_IOCTL_NUMBER = 0x5500 42f08c3bdfSopenharmony_ci} incdev_ioctl_cmds_t; 43f08c3bdfSopenharmony_ci 44f08c3bdfSopenharmony_ci#define INCDEV_CMD _IOR(INCLUDEMAJOR, INC_IOCTL_NUMBER, incdev_cmd_t**) 45f08c3bdfSopenharmony_ci 46f08c3bdfSopenharmony_ci/* 47f08c3bdfSopenharmony_ci * function prototypes 48f08c3bdfSopenharmony_ci */ 49f08c3bdfSopenharmony_ci 50f08c3bdfSopenharmony_cistatic void option1(void); 51