mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/* 2001/10/02
|
|
*
|
|
* enternow.h Header-file included by
|
|
* enternow_pci.c
|
|
*
|
|
* Author Christoph Ersfeld <info@formula-n.de>
|
|
* Formula-n Europe AG (www.formula-n.com)
|
|
* previously Gerdes AG
|
|
*
|
|
*
|
|
* This file is (c) under GNU PUBLIC LICENSE
|
|
*/
|
|
|
|
|
|
/* ***************************************************************************************** *
|
|
* ****************************** datatypes and macros ************************************* *
|
|
* ***************************************************************************************** */
|
|
|
|
#define BYTE unsigned char
|
|
#define WORD unsigned int
|
|
#define HIBYTE(w) ((unsigned char)((w & 0xff00) / 256))
|
|
#define LOBYTE(w) ((unsigned char)(w & 0x00ff))
|
|
#define InByte(addr) inb(addr)
|
|
#define OutByte(addr,val) outb(val,addr)
|
|
|
|
|
|
|
|
/* ***************************************************************************************** *
|
|
* *********************************** card-specific *************************************** *
|
|
* ***************************************************************************************** */
|
|
|
|
/* für PowerISDN PCI */
|
|
#define TJ_AMD_IRQ 0x20
|
|
#define TJ_LED1 0x40
|
|
#define TJ_LED2 0x80
|
|
|
|
|
|
/* Das Fenster zum AMD...
|
|
* Ab Adresse hw.njet.base + TJ_AMD_PORT werden vom AMD jeweils 8 Bit in
|
|
* den TigerJet i/o-Raum gemappt
|
|
* -> 0x01 des AMD bei hw.njet.base + 0C4 */
|
|
#define TJ_AMD_PORT 0xC0
|
|
|
|
|
|
|
|
/* ***************************************************************************************** *
|
|
* *************************************** Prototypen ************************************** *
|
|
* ***************************************************************************************** */
|
|
|
|
BYTE ReadByteAmd7930(struct IsdnCardState *cs, BYTE offset);
|
|
void WriteByteAmd7930(struct IsdnCardState *cs, BYTE offset, BYTE value);
|