hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 *********************************************************************************
 *     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 <linux/module.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ethtool.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/random.h>
#include <linux/mii.h>
 
#include <linux/in.h>
 
#include <asm/system.h>
#include <asm/io.h>
#include <asm/uaccess.h>
*/
/* 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 */