Files
chipsec-chipsec/source/drivers/win7/driver.h
T
CHIPSEC ac2ca7264f 1. We have support for uefi variables on Windows and Linux but not
UEFI shell.
2.       Decompression of images in SPI flash parsing is only supported in
Windows.
3.	UEFI - Support for IA32 and i586 (Quark)
4.	Added capability to use modules from an arbitrary path with the -I
/ --import command line option
5.	Module functionality encapsulated in class inheriting BaseModule
6.	Fixed  loading platform specific configuration
7.	Fixed issue with modules which run on multiple logical CPUs
hanging on Bay Trail (Windows/Linux). The issue still exist when running
from UEFI shell
8.	Added template for a module - module_template.py
9.	Added options to flush log files
10.	Added ability to define custom platforms
Driver changes:
1.	Windows - Added IOCTL_ALLOC_PHYSMEM to allocate physical memory
buffer
2.	Linux - Fix wrpci defect
2014-05-29 21:57:40 +01:00

61 lines
1.4 KiB
C

#ifndef DRIVER_H
#define DRIVER_H
#include "cpu.h"
#include "chipsec.h"
#include "windef.h"
// function prototypes
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
);
NTSTATUS
DriverOpen(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
DriverClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
DriverDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
VOID
DriverUnload(
IN PDRIVER_OBJECT DriverObject
);
NTSTATUS
DriverCreateSymbolicLinkObject(
VOID
);
//BYTE bPCIRead(WORD target, BYTE offset );
//WORD wPCIRead(WORD target, BYTE offset );
//DWORD lPCIRead(WORD target, BYTE offset );
//BYTE bPCIReadParam(WORD bus, WORD dev, WORD func, BYTE offset );
//WORD wPCIReadParam(WORD bus, WORD dev, WORD func, BYTE offset );
//DWORD lPCIReadParam(WORD bus, WORD dev, WORD func, BYTE offset );
//VOID bPCIWriteParam(WORD bus, WORD dev, WORD func, BYTE offset, BYTE value );
//VOID wPCIWriteParam(WORD bus, WORD dev, WORD func, BYTE offset, WORD value );
//VOID lPCIWriteParam(WORD bus, WORD dev, WORD func, BYTE offset, DWORD value );
BYTE pci_read_byte(WORD bus, WORD dev, WORD func, BYTE offset );
WORD pci_read_word(WORD bus, WORD dev, WORD func, BYTE offset );
DWORD pci_read_dword(WORD bus, WORD dev, WORD func, BYTE offset );
#endif // DRIVER_H