]>
git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - drivers/staging/ft1000/ft1000-pcmcia/ft1000_dev.h
1 //---------------------------------------------------------------------------
2 // FT1000 driver for Flarion Flash OFDM NIC Device
4 // Copyright (C) 2002 Flarion Technologies, All rights reserved.
6 // This program is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU General Public License as published by the Free
8 // Software Foundation; either version 2 of the License, or (at your option) any
9 // later version. This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 // more details. You should have received a copy of the GNU General Public
13 // License along with this program; if not, write to the
14 // Free Software Foundation, Inc., 59 Temple Place -
15 // Suite 330, Boston, MA 02111-1307, USA.
16 //---------------------------------------------------------------------------
20 // Description: Register definitions and bit masks for the FT1000 NIC
23 // 2/5/02 Ivan Bohannon Written.
24 // 8/29/02 Whc Ported to Linux.
26 //---------------------------------------------------------------------------
30 //---------------------------------------------------------------------------
32 // Function: ft1000_read_reg
33 // Description: This function will read the value of a given ASIC register.
35 // dev - device structure
36 // offset - ASIC register offset
38 // data - ASIC register value
40 //---------------------------------------------------------------------------
41 static inline u16
ft1000_read_reg (struct net_device
*dev
, u16 offset
) {
44 data
= inw(dev
->base_addr
+ offset
);
49 //---------------------------------------------------------------------------
51 // Function: ft1000_write_reg
52 // Description: This function will set the value for a given ASIC register.
54 // dev - device structure
55 // offset - ASIC register offset
56 // value - value to write
60 //---------------------------------------------------------------------------
61 static inline void ft1000_write_reg (struct net_device
*dev
, u16 offset
, u16 value
) {
62 outw (value
, dev
->base_addr
+ offset
);
65 #endif // _FT1000_DEVH_