~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to drivers/net/ethernet/amd/hplance.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Random defines and structures for the HP Lance driver.
 
2
 * Copyright (C) 05/1998 Peter Maydell <pmaydell@chiark.greenend.org.uk>
 
3
 * Based on the Sun Lance driver and the NetBSD HP Lance driver
 
4
 */
 
5
 
 
6
/* Registers */
 
7
#define HPLANCE_ID              0x01            /* DIO register: ID byte */
 
8
#define HPLANCE_STATUS          0x03            /* DIO register: interrupt enable/status */
 
9
 
 
10
/* Control and status bits for the status register */
 
11
#define LE_IE 0x80                                /* interrupt enable */
 
12
#define LE_IR 0x40                                /* interrupt requested */
 
13
#define LE_LOCK 0x08                              /* lock status register */
 
14
#define LE_ACK 0x04                               /* ack of lock */
 
15
#define LE_JAB 0x02                               /* loss of tx clock (???) */
 
16
/* We can also extract the IPL from the status register with the standard
 
17
 * DIO_IPL(hplance) macro, or using dio_scodetoipl()
 
18
 */
 
19
 
 
20
/* These are the offsets for the DIO regs (hplance_reg), lance_ioreg,
 
21
 * memory and NVRAM:
 
22
 */
 
23
#define HPLANCE_IDOFF 0                           /* board baseaddr */
 
24
#define HPLANCE_REGOFF 0x4000                     /* lance registers */
 
25
#define HPLANCE_MEMOFF 0x8000                     /* struct lance_init_block */
 
26
#define HPLANCE_NVRAMOFF 0xC008                   /* etheraddress as one *nibble* per byte */