Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0864708f
Commit
0864708f
authored
Feb 05, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Minor whitespace & formatting fixups in asm-ia64/sal.h.
parent
19250aed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
329 additions
and
360 deletions
+329
-360
include/asm-ia64/sal.h
include/asm-ia64/sal.h
+329
-360
No files found.
include/asm-ia64/sal.h
View file @
0864708f
...
...
@@ -10,8 +10,8 @@
* Copyright (C) 2001 Intel
* Copyright (C) 2002 Jenna Hall <jenna.s.hall@intel.com>
* Copyright (C) 2001 Fred Lewis <frederick.v.lewis@intel.com>
* Copyright (C) 1998, 1999, 2001 Hewlett-Packard Co
*
Copyright (C) 1998, 1999, 2001
David Mosberger-Tang <davidm@hpl.hp.com>
* Copyright (C) 1998, 1999, 2001
, 2003
Hewlett-Packard Co
*
David Mosberger-Tang <davidm@hpl.hp.com>
* Copyright (C) 1999 Srinivasa Prasad Thirumalachar <sprasad@sprasad.engr.sgi.com>
*
* 02/01/04 J. Hall Updated Error Record Structures to conform to July 2001
...
...
@@ -239,52 +239,41 @@ enum {
#define SAL_MC_PARAM_BINIT_ESCALATE 0x10
/*
*
* Definition of the SAL Error Log from the SAL spec
*/
* Definition of the SAL Error Log from the SAL spec
*/
/* SAL Error Record Section GUID Definitions */
#define SAL_PROC_DEV_ERR_SECT_GUID \
EFI_GUID ( 0xe429faf1, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf1, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_MEM_DEV_ERR_SECT_GUID \
EFI_GUID( 0xe429faf2, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf2, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_SEL_DEV_ERR_SECT_GUID \
EFI_GUID( 0xe429faf3, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf3, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_PCI_BUS_ERR_SECT_GUID \
EFI_GUID( 0xe429faf4, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf4, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_SMBIOS_DEV_ERR_SECT_GUID \
EFI_GUID( 0xe429faf5, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf5, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_PCI_COMP_ERR_SECT_GUID \
EFI_GUID( 0xe429faf6, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf6, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_SPECIFIC_ERR_SECT_GUID \
EFI_GUID( 0xe429faf7, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf7, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_HOST_CTLR_ERR_SECT_GUID \
EFI_GUID( 0xe429faf8, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf8, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define SAL_PLAT_BUS_ERR_SECT_GUID \
EFI_GUID( 0xe429faf9, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, \
0xc7, 0x3c, 0x88, 0x81 )
EFI_GUID(0xe429faf9, 0x3cb7, 0x11d4, 0xbc, 0xa7, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81)
#define MAX_CACHE_ERRORS 6
#define MAX_TLB_ERRORS 6
#define MAX_BUS_ERRORS 1
/* Definition of version according to SAL spec for logging purposes */
typedef
struct
sal_log_revision
{
typedef
struct
sal_log_revision
{
u8
minor
;
/* BCD (0..99) */
u8
major
;
/* BCD (0..99) */
}
sal_log_revision_t
;
/* Definition of timestamp according to SAL spec for logging purposes */
typedef
struct
sal_log_timestamp
{
typedef
struct
sal_log_timestamp
{
u8
slh_second
;
/* Second (0..59) */
u8
slh_minute
;
/* Minute (0..59) */
u8
slh_hour
;
/* Hour (0..23) */
...
...
@@ -296,8 +285,7 @@ typedef struct sal_log_timestamp
}
sal_log_timestamp_t
;
/* Definition of log record header structures */
typedef
struct
sal_log_record_header
{
typedef
struct
sal_log_record_header
{
u64
id
;
/* Unique monotonically increasing ID */
sal_log_revision_t
revision
;
/* Major and Minor revision of header */
u16
severity
;
/* Error Severity */
...
...
@@ -307,18 +295,15 @@ typedef struct sal_log_record_header
}
sal_log_record_header_t
;
/* Definition of log section header structures */
typedef
struct
sal_log_sec_header
{
typedef
struct
sal_log_sec_header
{
efi_guid_t
guid
;
/* Unique Section ID */
sal_log_revision_t
revision
;
/* Major and Minor revision of Section */
u16
reserved
;
u32
len
;
/* Section length */
}
sal_log_section_hdr_t
;
typedef
struct
sal_log_mod_error_info
{
struct
{
typedef
struct
sal_log_mod_error_info
{
struct
{
u64
check_info
:
1
,
requestor_identifier
:
1
,
responder_identifier
:
1
,
...
...
@@ -333,10 +318,8 @@ typedef struct sal_log_mod_error_info
u64
precise_ip
;
}
sal_log_mod_error_info_t
;
typedef
struct
sal_processor_static_info
{
struct
{
typedef
struct
sal_processor_static_info
{
struct
{
u64
minstate
:
1
,
br
:
1
,
cr
:
1
,
...
...
@@ -353,11 +336,9 @@ typedef struct sal_processor_static_info
struct
ia64_fpreg
fr
[
128
];
}
sal_processor_static_info_t
;
typedef
struct
sal_log_processor_info
{
typedef
struct
sal_log_processor_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
proc_error_map
:
1
,
proc_state_param
:
1
,
proc_cr_lid
:
1
,
...
...
@@ -378,8 +359,7 @@ typedef struct sal_log_processor_info
sal_log_mod_error_info_t
bus_check_info
[
16
];
sal_log_mod_error_info_t
reg_file_check_info
[
16
];
sal_log_mod_error_info_t
ms_check_info
[
16
];
struct
{
struct
{
u64
regs
[
5
];
u64
reserved
;
}
cpuid_info
;
...
...
@@ -388,11 +368,9 @@ typedef struct sal_log_processor_info
/* platform error log structures */
typedef
struct
sal_log_mem_dev_err_info
{
typedef
struct
sal_log_mem_dev_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
error_status
:
1
,
physical_addr
:
1
,
addr_mask
:
1
,
...
...
@@ -431,11 +409,9 @@ typedef struct sal_log_mem_dev_err_info
u8
oem_data
[
1
];
/* Variable length data */
}
sal_log_mem_dev_err_info_t
;
typedef
struct
sal_log_sel_dev_err_info
{
typedef
struct
sal_log_sel_dev_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
record_id
:
1
,
record_type
:
1
,
generator_id
:
1
,
...
...
@@ -461,11 +437,9 @@ typedef struct sal_log_sel_dev_err_info
u8
event_data3
;
}
sal_log_sel_dev_err_info_t
;
typedef
struct
sal_log_pci_bus_err_info
{
typedef
struct
sal_log_pci_bus_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
err_status
:
1
,
err_type
:
1
,
bus_id
:
1
,
...
...
@@ -491,11 +465,9 @@ typedef struct sal_log_pci_bus_err_info
u8
oem_data
[
1
];
/* Variable length data */
}
sal_log_pci_bus_err_info_t
;
typedef
struct
sal_log_smbios_dev_err_info
{
typedef
struct
sal_log_smbios_dev_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
event_type
:
1
,
length
:
1
,
time_stamp
:
1
,
...
...
@@ -505,14 +477,12 @@ typedef struct sal_log_smbios_dev_err_info
u8
event_type
;
u8
length
;
u8
time_stamp
[
6
];
u8
data
[
1
];
// data of variable length, length == slsmb_length
u8
data
[
1
];
/* data of variable length, length == slsmb_length */
}
sal_log_smbios_dev_err_info_t
;
typedef
struct
sal_log_pci_comp_err_info
{
typedef
struct
sal_log_pci_comp_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
err_status
:
1
,
comp_info
:
1
,
num_mem_regs
:
1
,
...
...
@@ -522,8 +492,7 @@ typedef struct sal_log_pci_comp_err_info
reserved
:
58
;
}
valid
;
u64
err_status
;
struct
{
struct
{
u16
vendor_id
;
u16
device_id
;
u8
class_code
[
3
];
...
...
@@ -536,18 +505,17 @@ typedef struct sal_log_pci_comp_err_info
u32
num_mem_regs
;
u32
num_io_regs
;
u64
reg_data_pairs
[
1
];
/* array of address/data register pairs is num_mem_regs + num_io_regs
elements long. Each array element consists of a u64 address followed
by a u64 data value. The oem_data array immediately follows the
reg_data_pairs array */
/*
* array of address/data register pairs is num_mem_regs + num_io_regs elements
* long. Each array element consists of a u64 address followed by a u64 data
* value. The oem_data array immediately follows the reg_data_pairs array
*/
u8
oem_data
[
1
];
/* Variable length data */
}
sal_log_pci_comp_err_info_t
;
typedef
struct
sal_log_plat_specific_err_info
{
typedef
struct
sal_log_plat_specific_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
err_status
:
1
,
guid
:
1
,
oem_data
:
1
,
...
...
@@ -558,11 +526,9 @@ typedef struct sal_log_plat_specific_err_info
u8
oem_data
[
1
];
/* platform specific variable length data */
}
sal_log_plat_specific_err_info_t
;
typedef
struct
sal_log_host_ctlr_err_info
{
typedef
struct
sal_log_host_ctlr_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
err_status
:
1
,
requestor_id
:
1
,
responder_id
:
1
,
...
...
@@ -579,11 +545,9 @@ typedef struct sal_log_host_ctlr_err_info
u8
oem_data
[
1
];
/* Variable length OEM data */
}
sal_log_host_ctlr_err_info_t
;
typedef
struct
sal_log_plat_bus_err_info
{
typedef
struct
sal_log_plat_bus_err_info
{
sal_log_section_hdr_t
header
;
struct
{
struct
{
u64
err_status
:
1
,
requestor_id
:
1
,
responder_id
:
1
,
...
...
@@ -601,8 +565,7 @@ typedef struct sal_log_plat_bus_err_info
}
sal_log_plat_bus_err_info_t
;
/* Overall platform error section structure */
typedef
union
sal_log_platform_err_info
{
typedef
union
sal_log_platform_err_info
{
sal_log_mem_dev_err_info_t
mem_dev_err
;
sal_log_sel_dev_err_info_t
sel_dev_err
;
sal_log_pci_bus_err_info_t
pci_bus_err
;
...
...
@@ -614,8 +577,7 @@ typedef union sal_log_platform_err_info
}
sal_log_platform_err_info_t
;
/* SAL log over-all, multi-section error record structure (processor+platform) */
typedef
struct
err_rec
{
typedef
struct
err_rec
{
sal_log_record_header_t
sal_elog_header
;
sal_log_processor_info_t
proc_err
;
sal_log_platform_err_info_t
plat_err
;
...
...
@@ -648,7 +610,6 @@ ia64_sal_cache_flush (u64 cache_type)
}
/* Initialize all the processor and platform level instruction and data caches */
static
inline
s64
ia64_sal_cache_init
(
void
)
...
...
@@ -658,8 +619,9 @@ ia64_sal_cache_init (void)
return
isrv
.
status
;
}
/* Clear the processor and platform information logged by SAL with respect to the
* machine state at the time of MCA's, INITs, CMCs, or CPEs.
/*
* Clear the processor and platform information logged by SAL with respect to the machine
* state at the time of MCA's, INITs, CMCs, or CPEs.
*/
static
inline
s64
ia64_sal_clear_state_info
(
u64
sal_info_type
)
...
...
@@ -685,8 +647,10 @@ ia64_sal_get_state_info (u64 sal_info_type, u64 *sal_info)
return
isrv
.
v0
;
}
/* Get the maximum size of the information logged by SAL with respect to the machine
* state at the time of MCAs, INITs, CMCs, or CPEs.
/*
* Get the maximum size of the information logged by SAL with respect to the machine state
* at the time of MCAs, INITs, CMCs, or CPEs.
*/
static
inline
u64
ia64_sal_get_state_info_size
(
u64
sal_info_type
)
...
...
@@ -699,8 +663,9 @@ ia64_sal_get_state_info_size (u64 sal_info_type)
return
isrv
.
v0
;
}
/* Causes the processor to go into a spin loop within SAL where SAL awaits a wakeup
* from the monarch processor.
/*
* Causes the processor to go into a spin loop within SAL where SAL awaits a wakeup from
* the monarch processor.
*/
static
inline
s64
ia64_sal_mc_rendez
(
void
)
...
...
@@ -710,7 +675,8 @@ ia64_sal_mc_rendez (void)
return
isrv
.
status
;
}
/* Allow the OS to specify the interrupt number to be used by SAL to interrupt OS during
/*
* Allow the OS to specify the interrupt number to be used by SAL to interrupt OS during
* the machine check rendezvous sequence as well as the mechanism to wake up the
* non-monarch processor at the end of machine check processing.
*/
...
...
@@ -718,7 +684,8 @@ static inline s64
ia64_sal_mc_set_params
(
u64
param_type
,
u64
i_or_m
,
u64
i_or_m_val
,
u64
timeout
,
u64
rz_always
)
{
struct
ia64_sal_retval
isrv
;
SAL_CALL
(
isrv
,
SAL_MC_SET_PARAMS
,
param_type
,
i_or_m
,
i_or_m_val
,
timeout
,
rz_always
,
0
,
0
);
SAL_CALL
(
isrv
,
SAL_MC_SET_PARAMS
,
param_type
,
i_or_m
,
i_or_m_val
,
timeout
,
rz_always
,
0
,
0
);
return
isrv
.
status
;
}
...
...
@@ -744,8 +711,8 @@ ia64_sal_pci_config_write (u64 pci_config_addr, u64 size, u64 value)
}
/*
* Register physical addresses of locations needed by SAL when SAL
*
procedures are invoked
in virtual mode.
* Register physical addresses of locations needed by SAL when SAL
procedures are invoked
* in virtual mode.
*/
static
inline
s64
ia64_sal_register_physical_addr
(
u64
phys_entry
,
u64
phys_addr
)
...
...
@@ -756,9 +723,10 @@ ia64_sal_register_physical_addr (u64 phys_entry, u64 phys_addr)
return
isrv
.
status
;
}
/* Register software dependent code locations within SAL. These locations are handlers
* or entry points where SAL will pass control for the specified event. These event
* handlers are for the bott rendezvous, MCAs and INIT scenarios.
/*
* Register software dependent code locations within SAL. These locations are handlers or
* entry points where SAL will pass control for the specified event. These event handlers
* are for the bott rendezvous, MCAs and INIT scenarios.
*/
static
inline
s64
ia64_sal_set_vectors
(
u64
vector_type
,
...
...
@@ -772,6 +740,7 @@ ia64_sal_set_vectors (u64 vector_type,
return
isrv
.
status
;
}
/* Update the contents of PAL block in the non-volatile storage device */
static
inline
s64
ia64_sal_update_pal
(
u64
param_buf
,
u64
scratch_buf
,
u64
scratch_buf_size
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment