aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/rio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86_64/rio.h')
-rw-r--r--include/asm-x86_64/rio.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-x86_64/rio.h b/include/asm-x86_64/rio.h
index 1f315c39d76e..c7350f6d2015 100644
--- a/include/asm-x86_64/rio.h
+++ b/include/asm-x86_64/rio.h
@@ -3,7 +3,6 @@
3 * and include/asm-i386/mach-default/bios_ebda.h 3 * and include/asm-i386/mach-default/bios_ebda.h
4 * 4 *
5 * Author: Laurent Vivier <Laurent.Vivier@bull.net> 5 * Author: Laurent Vivier <Laurent.Vivier@bull.net>
6 *
7 */ 6 */
8 7
9#ifndef __ASM_RIO_H 8#ifndef __ASM_RIO_H
@@ -19,7 +18,7 @@ struct rio_table_hdr {
19 18
20struct scal_detail { 19struct scal_detail {
21 u8 node_id; /* Scalability Node ID */ 20 u8 node_id; /* Scalability Node ID */
22 u32 CBAR; /* Address of 1MB register space */ 21 u32 CBAR; /* Address of 1MB register space */
23 u8 port0node; /* Node ID port connected to: 0xFF=None */ 22 u8 port0node; /* Node ID port connected to: 0xFF=None */
24 u8 port0port; /* Port num port connected to: 0,1,2, or */ 23 u8 port0port; /* Port num port connected to: 0,1,2, or */
25 /* 0xFF=None */ 24 /* 0xFF=None */
@@ -34,7 +33,7 @@ struct scal_detail {
34 33
35struct rio_detail { 34struct rio_detail {
36 u8 node_id; /* RIO Node ID */ 35 u8 node_id; /* RIO Node ID */
37 u32 BBAR; /* Address of 1MB register space */ 36 u32 BBAR; /* Address of 1MB register space */
38 u8 type; /* Type of device */ 37 u8 type; /* Type of device */
39 u8 owner_id; /* Node ID of Hurricane that owns this */ 38 u8 owner_id; /* Node ID of Hurricane that owns this */
40 /* node */ 39 /* node */
@@ -65,10 +64,9 @@ enum {
65 * there is a real-mode segmented pointer pointing to the 64 * there is a real-mode segmented pointer pointing to the
66 * 4K EBDA area at 0x40E. 65 * 4K EBDA area at 0x40E.
67 */ 66 */
68
69static inline unsigned long get_bios_ebda(void) 67static inline unsigned long get_bios_ebda(void)
70{ 68{
71 unsigned long address= *(unsigned short *)phys_to_virt(0x40Eul); 69 unsigned long address = *(unsigned short *)phys_to_virt(0x40EUL);
72 address <<= 4; 70 address <<= 4;
73 return address; 71 return address;
74} 72}