Home | History | Annotate | Line # | Download | only in include
      1 
      2 /*
      3  * Licensed Materials - Property of IBM
      4  *
      5  * trousers - An open source TCG Software Stack
      6  *
      7  * (C) Copyright International Business Machines Corp. 2006
      8  *
      9  */
     10 
     11 #ifndef _BIOSEM_H_
     12 #define _BIOSEM_H_
     13 
     14 int bios_open(void *, FILE **);
     15 TSS_RESULT bios_get_entries_by_pcr(FILE *, UINT32, UINT32, UINT32 *, TSS_PCR_EVENT **);
     16 TSS_RESULT bios_get_entry(FILE *, UINT32, UINT32 *, TSS_PCR_EVENT **);
     17 int bios_close(FILE *);
     18 
     19 extern struct ext_log_source bios_source;
     20 
     21 /* this should be large if we're reading out of /proc */
     22 #define BIOS_READ_SIZE	4096
     23 
     24 typedef struct {
     25 	UINT32 pcrIndex;
     26 	UINT32 eventType;
     27 	BYTE   digest[20];
     28 	UINT32 eventDataSize;
     29 	BYTE   event[0];/* (eventSize) bytes of event data follows */
     30 } TCG_PCClientPCREventStruc;
     31 
     32 #define EVLOG_SOURCE_BIOS	1
     33 
     34 #endif
     35