User:Johnburger/Demo/Dev/Dev

From OSDev Wiki
Jump to: navigation, search

Although a PC has a large number of devices, this Demonstrator only uses a few of them - and not their full capability in each case.

No code is embodied in these files - except for some macro definitions, maybe. These definitions are merely convenient symbols for the actual device drivers to use.

If the definition is for an I/O Port, or the individual values that it can use, they're usually grouped together to make it obvious. Also, since all (standard) I/O ports are in the range 000h-3FFh, I use three-digit hex numbers and a .Port suffix to represent them. Bit-fields are represented in binary, while command values are represented in hex.

Demo/Dev/Dev.inc

;
; Dev/Dev.inc
;
 
; Different devices have different definitions: for their registers, their
; assumed structures, and for their access protocols.
 
;-------------------------------------------------------------------------------
%include        "Dev/A20.inc"   ; Definitions for the A20 Gate controller
;-------------------------------------------------------------------------------
%include        "Dev/PIC.inc"   ; Definitions for the Priority Interrupt Controllers
;-------------------------------------------------------------------------------
%include        "Dev/Timer.inc" ; Definitions for the Programmable Interval Timer
;-------------------------------------------------------------------------------
%include        "Dev/Key.inc"   ; Definitions for the Keyboard
;-------------------------------------------------------------------------------
%include        "Dev/VGA.inc"   ; Definitions for the VGA video controller
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox