| 1 | |
| 2 | * sdlapci.h WANPIPE(tm) Multiprotocol WAN Link Driver.
|
| 3 | * Definitions for the SDLA PCI adapter.
|
| 4 | *
|
| 5 | * Author: Gideon Hack <[email protected]>
|
| 6 | *
|
| 7 | * Copyright: (c) 1999-2000 Sangoma Technologies Inc.
|
| 8 | *
|
| 9 | * This program is free software; you can redistribute it and/or
|
| 10 | * modify it under the terms of the GNU General Public License
|
| 11 | * as published by the Free Software Foundation; either version
|
| 12 | * 2 of the License, or (at your option) any later version.
|
| 13 | * ============================================================================
|
| 14 | * Jun 02, 1999 Gideon Hack Initial version.
|
| 15 | ****************************************************************************
|
| 16 | #ifndef _SDLAPCI_H
|
| 17 | #define _SDLAPCI_H
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 | #define V3_VENDOR_ID 0x11B0
|
| 23 | #define V3_DEVICE_ID 0x0002
|
| 24 | #define SANGOMA_SUBSYS_VENDOR 0x4753
|
| 25 | #define PCI_DEV_SLOT_MASK 0x1F
|
| 26 | #define PCI_IRQ_NOT_ALLOCATED 0xFF
|
| 27 |
|
| 28 |
|
| 29 | #define PCI_VENDOR_ID_WORD 0x00
|
| 30 | #define PCI_IO_BASE_DWORD 0x10
|
| 31 | #define PCI_MEM_BASE0_DWORD 0x14
|
| 32 | #define PCI_MEM_BASE1_DWORD 0x18
|
| 33 | #define PCI_SUBSYS_VENDOR_WORD 0x2C
|
| 34 | #define PCI_INT_LINE_BYTE 0x3C
|
| 35 | #define PCI_INT_PIN_BYTE 0x3D
|
| 36 | #define PCI_MAP0_DWORD 0x40
|
| 37 | #define PCI_MAP1_DWORD 0x44
|
| 38 | #define PCI_INT_STATUS 0x48
|
| 39 | #define PCI_INT_CONFIG 0x4C
|
| 40 |
|
| 41 |
|
| 42 | #define PCI_MEMORY_ENABLE 0x00000003
|
| 43 | #define PCI_CPU_A_MEM_DISABLE 0x00000002
|
| 44 | #define PCI_CPU_B_MEM_DISABLE 0x00100002
|
| 45 | #define PCI_ENABLE_IRQ_CPU_A 0x005A0004
|
| 46 | #define PCI_ENABLE_IRQ_CPU_B 0x005A0008
|
| 47 | #define PCI_DISABLE_IRQ_CPU_A 0x00000004
|
| 48 | #define PCI_DISABLE_IRQ_CPU_B 0x00000008
|
| 49 |
|
| 50 |
|
| 51 | #define IRQ_CPU_A 0x04
|
| 52 | #define IRQ_CPU_B 0x08
|
| 53 |
|
| 54 |
|
| 55 | #define MAX_SIZEOF_S514_MEMORY (256 * 1024)
|
| 56 |
|
| 57 |
|
| 58 | #define S514_CTRL_REG_BYTE 0x80000
|
| 59 |
|
| 60 |
|
| 61 | #define S514_CPU_HALT 0x00
|
| 62 | #define S514_CPU_START 0x01
|
| 63 |
|
| 64 |
|
| 65 | #define MAX_S514_CARDS 20
|
| 66 |
|
| 67 | #define PCI_CARD_TYPE 0x2E
|
| 68 | #define S514_DUAL_CPU 0x12
|
| 69 | #define S514_SINGLE_CPU 0x11
|
| 70 |
|
| 71 | #endif
|
| 72 |
|