halK - KONTRON KTGM45 Hal
halRegister( ) - register hal driver
halInstInit( ) - first level initialization routine
halInstInit2( ) - second level initialization routine of timer device
halInstConnect( ) - third level initialization routine of timer device
halDrvCtrlShow( ) - show routine
vxbusHalBoardInfoGet( ) - method to retrieve the board info
halBoardInfoGet( ) - retrieve the board info
halBoardInfoShow( ) - print the board info
halTopMemGet( ) - get the top of the memory
find_freq_from_fid( ) - get the CPU frequency
KONTRON KTGM45 Hal.
This driver serves as an abstraction layer to obtain hardware specific information
about the board in use. For some boards additional functions to handle hardware
dependent features are available. The provided functions and information are individual
for each board or board family.
The board information is encapsulated in the BOARD_INFO structure.
If a particular piece of information is not available for a board, the item
of the board info structure is set to UNSUPPORTED.
halRegister( ) - register hal driver
This routine registers the hal driver with the VxBus subsystem.
This routine contains the first instructions of the device driver that are ever executed within a VxWorks system. This function registers the driver with VxBus by providing pointers to the data structures listed previously. Once this step is complete, VxWorks is able to associate this driver with appropriate hardware within the system to form an instance.
N/A
Not Available
halInstInit( ) - first level initialization routine
This is the function called to perform the first level initialization of the template timer device.
This routine is called early during system initialization, and *MUST NOT* make calls to OS facilities such as memory allocation and I/O.
N/A
Not Available
halInstInit2( ) - second level initialization routine of timer device
This routine performs the second level initialization of the timer device.
This routine is called later during system initialization. OS features such as memory allocation are available at this time.
Timer interrupt source must be connencted here since system clock timer will be enabled right after the VxBus second level initialization is done and can not wait till the third level initialization in case this timer is assigned to the system clock timer.
N/A
halInstConnect( ) - third level initialization routine of timer device
This is the function called to perform the third level initialization of the timer device.
N/A
halDrvCtrlShow( ) - show routine
This routine prints information about the instance to to system
console. This is integrated with vxBusShow.
RETURNS: 0, always
Not Available
Not Available
vxbusHalBoardInfoGet( ) - method to retrieve the board info
This function is the driver method used to retrieve the board info.
OK, or ERROR if functionality is not retrieved.
halBoardInfoGet( ) - retrieve the board info
This function utilizes the driver method used to retrieve the board info.
OK, or ERROR if functionality is not retrieved.
halBoardInfoShow( ) - print the board info
This function utilizes the driver method used to console print the board info.
OK, or ERROR if functionality is not retrieved.
Not Available
halTopMemGet( ) - get the top of the memory
This routine gets the top of the lower memory below 4GB.
top of the memory
Not Available
find_freq_from_fid( ) - get the CPU frequency
This function gets FID from K8 MSR and calculates CPU frequency.
CPU frequency
Not Available