mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Improved debug output and
added hal READ_XXX and WRITE_XXX functions. svn path=/trunk/; revision=715
This commit is contained in:
parent
bff71dc524
commit
d2e85caa9e
2 changed files with 70 additions and 16 deletions
|
@ -65,7 +65,7 @@ typedef BOOLEAN (*PHAL_RESET_DISPLAY_PARAMETERS)(ULONG Columns, ULONG Rows);
|
|||
|
||||
|
||||
VOID HalAcquireDisplayOwnership (
|
||||
PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
|
||||
PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
|
||||
|
||||
PVOID HalAllocateCommonBuffer(PADAPTER_OBJECT AdapterObject,
|
||||
ULONG Length,
|
||||
|
@ -120,7 +120,7 @@ ULONG HalGetInterruptVector(INTERFACE_TYPE InterfaceType,
|
|||
PKAFFINITY Affinity);
|
||||
|
||||
BOOLEAN HalInitSystem (ULONG Phase,
|
||||
boot_param *bp);
|
||||
boot_param *bp);
|
||||
|
||||
BOOLEAN HalMakeBeep (ULONG Frequency);
|
||||
|
||||
|
@ -151,7 +151,7 @@ ULONG HalSetBusDataByOffset(BUS_DATA_TYPE BusDataType,
|
|||
ULONG Length);
|
||||
|
||||
VOID HalSetDisplayParameters(ULONG CursorPosX,
|
||||
ULONG CursorPosY);
|
||||
ULONG CursorPosY);
|
||||
|
||||
BOOLEAN HalTranslateBusAddress(INTERFACE_TYPE InterfaceType,
|
||||
ULONG BusNumber,
|
||||
|
@ -159,4 +159,71 @@ BOOLEAN HalTranslateBusAddress(INTERFACE_TYPE InterfaceType,
|
|||
PULONG AddressSpace,
|
||||
PPHYSICAL_ADDRESS TranslatedAddress);
|
||||
|
||||
/*
|
||||
* Kernel debugger section
|
||||
*/
|
||||
|
||||
typedef struct _KD_PORT_INFORMATION
|
||||
{
|
||||
ULONG ComPort;
|
||||
ULONG BaudRate;
|
||||
ULONG BaseAddress;
|
||||
} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
|
||||
|
||||
|
||||
extern ULONG KdComPortInUse;
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
KdPortInitialize (PKD_PORT_INFORMATION PortInformation,
|
||||
DWORD Unknown1,
|
||||
DWORD Unknown2);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
KdPortPutByte (UCHAR ByteToSend);
|
||||
|
||||
|
||||
/*
|
||||
* Port I/O functions
|
||||
*/
|
||||
|
||||
UCHAR
|
||||
READ_PORT_BUFFER_UCHAR (PUCHAR Port, PUCHAR Value, ULONG Count);
|
||||
|
||||
ULONG
|
||||
READ_PORT_BUFFER_ULONG (PULONG Port, PULONG Value, ULONG Count);
|
||||
|
||||
USHORT
|
||||
READ_PORT_BUFFER_USHORT (PUSHORT Port, PUSHORT Value, ULONG Count);
|
||||
|
||||
UCHAR
|
||||
READ_PORT_UCHAR (PUCHAR Port);
|
||||
|
||||
ULONG
|
||||
READ_PORT_ULONG (PULONG Port);
|
||||
|
||||
USHORT
|
||||
READ_PORT_USHORT (PUSHORT Port);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_BUFFER_UCHAR (PUCHAR Port, PUCHAR Value, ULONG Count);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_BUFFER_ULONG (PULONG Port, PULONG Value, ULONG Count);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_BUFFER_USHORT (PUSHORT Port, PUSHORT Value, ULONG Count);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_UCHAR (PUCHAR Port, UCHAR Value);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_ULONG (PULONG Port, ULONG Value);
|
||||
|
||||
VOID
|
||||
WRITE_PORT_USHORT (PUSHORT Port, USHORT Value);
|
||||
|
||||
|
||||
#endif /* __INCLUDE_INTERNAL_HAL_DDK_H */
|
||||
|
|
|
@ -164,19 +164,6 @@ __OUTS(l)
|
|||
__inlc_p(port) : \
|
||||
__inl_p(port))
|
||||
|
||||
/* HAL port mapped I/O functions */
|
||||
#define READ_PORT_UCHAR(port) inb_p(port)
|
||||
#define READ_PORT_USHORT(port) inw_p(port)
|
||||
#define READ_PORT_ULONG(port) inl_p(port)
|
||||
#define READ_PORT_BUFFER_UCHAR(port, buffer, count) insb(port, buffer, count)
|
||||
#define READ_PORT_BUFFER_USHORT(port, buffer, count) insw(port, buffer, count)
|
||||
#define READ_PORT_BUFFER_ULONG(port, buffer, count) insl(port, buffer, count)
|
||||
#define WRITE_PORT_UCHAR(port, value) outb_p(port, value)
|
||||
#define WRITE_PORT_USHORT(port, value) outw_p(port, value)
|
||||
#define WRITE_PORT_ULONG(port, value) outl_p(port, value)
|
||||
#define WRITE_PORT_BUFFER_UCHAR(port, buffer, count) outsb(port, buffer, count)
|
||||
#define WRITE_PORT_BUFFER_USHORT(port, buffer, count) outsw(port, buffer, count)
|
||||
#define WRITE_PORT_BUFFER_ULONG(port, buffer, count) outsl(port, buffer, count)
|
||||
|
||||
/* HAL Memory mapped I/O functions */
|
||||
/* FIXME: these ops should be 'lock' prefixed */
|
||||
|
|
Loading…
Reference in a new issue