File: ethtool-sparc22.h

package info (click to toggle)
ethtool 2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 564 kB
  • ctags: 1,013
  • sloc: ansic: 5,144; sh: 791; makefile: 46
file content (29 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (3)
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
/*
 * This is an excerpt from kernel-source-2.2.19 include/asm-sparc/ethtool.h.
 */

/* $Id: ethtool.h,v 1.1.2.1 2000/01/31 05:02:42 davem Exp $
 * ethtool.h: Defines for SparcLinux ethtool.
 *
 * Copyright (C) 1998 David S. Miller (davem@redhat.com)
 */

#ifndef _SPARC_ETHTOOL_H
#define _SPARC_ETHTOOL_H

/* pre-2.4 value of SIOCETHTOOL */
#define SIOCETHTOOL_22 (SIOCDEVPRIVATE + 0x0f)

/* This should work for both 32 and 64 bit userland. */
struct ethtool_cmd_22 {
	u32	cmd;
	u32	supported;
	u16	speed;
	u8	duplex;
	u8	port;
	u8	phy_address;
	u8	transceiver;
	u8	autoneg;
};

#endif /* _SPARC_ETHTOOL_H */