aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware/rombios/32bitprotos.h
blob: f0c401476a98e8894673f6ba44d6d95833d6f290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef PROTOS_HIGHBIOS
#define PROTOS_HIGHBIOS

/* shared include file for bcc and gcc */

/* bcc does not like 'enum' */
#define IDX_TCGINTERRUPTHANDLER            0
#define IDX_TCPA_ACPI_INIT                 1
#define IDX_TCPA_EXTEND_ACPI_LOG           2
#define IDX_TCPA_CALLING_INT19H            3
#define IDX_TCPA_RETURNED_INT19H           4
#define IDX_TCPA_ADD_EVENT_SEPARATORS      5
#define IDX_TCPA_WAKE_EVENT                6
#define IDX_TCPA_ADD_BOOTDEVICE            7
#define IDX_TCPA_START_OPTION_ROM_SCAN     8
#define IDX_TCPA_OPTION_ROM                9
#define IDX_TCPA_IPL                       10
#define IDX_TCPA_INITIALIZE_TPM            11
#define IDX_TCPA_MEASURE_POST              12
#define IDX_GET_S3_WAKING_VECTOR           13
#define IDX_LAST                           14 /* keep last! */

#ifdef GCC_PROTOS
  #define PARMS(x...) x
#else
  /* bcc doesn't want any parameter types in prototypes */
  #define PARMS(x...)
#endif

Bit32u TCGInterruptHandler( PARMS(pushad_regs_t *regs, Bit32u esds, Bit32u flags_ptr));

void tcpa_acpi_init( PARMS(void) );
Bit32u tcpa_extend_acpi_log( PARMS(Bit32u entry_ptr) );
void tcpa_calling_int19h( PARMS(void) );
void tcpa_returned_int19h( PARMS(void) );
void tcpa_add_event_separators( PARMS(void) );
void tcpa_wake_event( PARMS(void) );
void tcpa_add_bootdevice( PARMS(Bit32u bootcd, Bit32u bootdrv) );
void tcpa_start_option_rom_scan( PARMS(void) );
void tcpa_option_rom( PARMS(Bit32u seg) );
void tcpa_ipl( PARMS(Bit32u bootcd,Bit32u seg,Bit32u off,Bit32u count) );
void tcpa_measure_post( PARMS(Bit32u from, Bit32u to) );
Bit32u tcpa_initialize_tpm( PARMS(Bit32u physpres) );

Bit32u get_s3_waking_vector( PARMS(void) );

#endif