/* ********************************************************************************* * Copyright (c) 2005 ASIX Electronic Corporation All rights reserved. * * This is unpublished proprietary source code of ASIX Electronic Corporation * * The copyright notice above does not evidence any actual or intended * publication of such source code. ********************************************************************************* */ #ifndef __COMMAND_H__ #define __COMMAND_H__ /* #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include */ /* NAMING CONSTANT DECLARATIONS */ #define AX88772B_SIGNATURE "AX88772B" #define AX88772B_DRV_NAME "AX88772B" #define DEBUG_PARAM (DEB_NONE) #define DEB_NONE (0) #define DEB_TOOL (1 << 0) #define DEB_DRIVER (1 << 1) #define DPRINT_D(...) while (1) { \ if (DEBUG_PARAM & DEB_DRIVER) \ printk(__VA_ARGS__); \ break; \ } /* ioctl Command Definition */ #define AX_PRIVATE SIOCDEVPRIVATE /* private Command Definition */ #define AX_SIGNATURE 0 #define AX_READ_EEPROM 1 #define AX_WRITE_EEPROM 2 typedef struct _AX_IOCTL_COMMAND { unsigned short ioctl_cmd; unsigned char sig[16]; unsigned short *buf; unsigned short size; unsigned char delay; }AX_IOCTL_COMMAND; #endif /* end of command.h */