Blame view
include/asm-x86_64/rio.h
2.96 KB
b34e90b8f [PATCH] Calgary: ... |
1 2 3 4 5 |
/* * Derived from include/asm-i386/mach-summit/mach_mpparse.h * and include/asm-i386/mach-default/bios_ebda.h * * Author: Laurent Vivier <Laurent.Vivier@bull.net> |
b34e90b8f [PATCH] Calgary: ... |
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
*/ #ifndef __ASM_RIO_H #define __ASM_RIO_H #define RIO_TABLE_VERSION 3 struct rio_table_hdr { u8 version; /* Version number of this data structure */ u8 num_scal_dev; /* # of Scalability devices */ u8 num_rio_dev; /* # of RIO I/O devices */ } __attribute__((packed)); struct scal_detail { u8 node_id; /* Scalability Node ID */ |
eae937555 [PATCH] Calgary: ... |
21 |
u32 CBAR; /* Address of 1MB register space */ |
b34e90b8f [PATCH] Calgary: ... |
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
u8 port0node; /* Node ID port connected to: 0xFF=None */ u8 port0port; /* Port num port connected to: 0,1,2, or */ /* 0xFF=None */ u8 port1node; /* Node ID port connected to: 0xFF = None */ u8 port1port; /* Port num port connected to: 0,1,2, or */ /* 0xFF=None */ u8 port2node; /* Node ID port connected to: 0xFF = None */ u8 port2port; /* Port num port connected to: 0,1,2, or */ /* 0xFF=None */ u8 chassis_num; /* 1 based Chassis number (1 = boot node) */ } __attribute__((packed)); struct rio_detail { u8 node_id; /* RIO Node ID */ |
eae937555 [PATCH] Calgary: ... |
36 |
u32 BBAR; /* Address of 1MB register space */ |
b34e90b8f [PATCH] Calgary: ... |
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
u8 type; /* Type of device */ u8 owner_id; /* Node ID of Hurricane that owns this */ /* node */ u8 port0node; /* Node ID port connected to: 0xFF=None */ u8 port0port; /* Port num port connected to: 0,1,2, or */ /* 0xFF=None */ u8 port1node; /* Node ID port connected to: 0xFF=None */ u8 port1port; /* Port num port connected to: 0,1,2, or */ /* 0xFF=None */ u8 first_slot; /* Lowest slot number below this Calgary */ u8 status; /* Bit 0 = 1 : the XAPIC is used */ /* = 0 : the XAPIC is not used, ie: */ /* ints fwded to another XAPIC */ /* Bits1:7 Reserved */ u8 WP_index; /* instance index - lower ones have */ /* lower slot numbers/PCI bus numbers */ u8 chassis_num; /* 1 based Chassis number */ } __attribute__((packed)); enum { HURR_SCALABILTY = 0, /* Hurricane Scalability info */ HURR_RIOIB = 2, /* Hurricane RIOIB info */ COMPAT_CALGARY = 4, /* Compatibility Calgary */ ALT_CALGARY = 5, /* Second Planar Calgary */ }; /* * there is a real-mode segmented pointer pointing to the * 4K EBDA area at 0x40E. */ |
b34e90b8f [PATCH] Calgary: ... |
67 68 |
static inline unsigned long get_bios_ebda(void) { |
eae937555 [PATCH] Calgary: ... |
69 |
unsigned long address = *(unsigned short *)phys_to_virt(0x40EUL); |
b34e90b8f [PATCH] Calgary: ... |
70 71 72 73 74 |
address <<= 4; return address; } #endif /* __ASM_RIO_H */ |