![]() |
Doxygen Documentation |
|||||
Package: |
GNAT |
|||||
Version: |
V1-0-23 |
Marked: |
(not marked) |
|||
Constituent: |
gnat |
Tag: |
sun-gcc |
|||
#include <stdlib.h>
#include <string.h>
#include "GNAT/log.h"
#include "GNAT/ginit.h"
#include "GNAT/VME.h"
#include "GNAT/gio.h"
#include "gnat_p.h"
Include dependency graph for ginit.c:

Defines | |
| #define | PACKET_READY_INTR_LEVEL (3) |
| The interrupt level for indicating a complete packet in the record FIFO. | |
| #define | PACKET_READY_INTR_VECTOR (200) |
| The interrupt vector indicating a complete packet in the record FIFO. | |
| #define | CMD_CHNL_NUM (7) |
| The default out going command channel number in the range 0 - 15. | |
| #define | CLK_CHNL_NUM (0) |
| The default out going clock channel number in the range 0 - 15. | |
Functions | |
| unsigned int | gSizeOfGh (void) |
| Hides the private implemenation of the gnat registers. Allows user to allocate memory. | |
| int | gInitDrv (void) |
| Driver wide initialization: allocate memory, semaphores, etc... | |
| int | gInitDev (void) |
| Device initialization: flush buffers, init registers, etc... | |
| int | gOpen (gnatHandle gh, unsigned int physAddr) |
| maps the physical address to an instance of the driver object | |
| int | gClose (gnatHandle gh) |
| shuts down the device attached to handle | |
| int | gGetLogicalAddr (gnatHandle gh, unsigned int *addr) |
| returns the logical address attached to handle | |
| int | gGetPhysAddr (gnatHandle gh, unsigned int *addr) |
| returns the physical address attached to handle | |
| int | gGetDriverInfo (DriverInfo *di) |
| fills in driver info struct | |
| int | gGetHardwareInfo (gnatHandle gh, HardwareInfo *hi) |
| fills in hardware info struct | |
|
|
shuts down the device attached to handle
|
|
|
fills in driver info struct
|
|
||||||||||||
|
fills in hardware info struct
|
Here is the call graph for this function:

|
||||||||||||
|
returns the logical address attached to handle
|
|
||||||||||||
|
returns the physical address attached to handle
|
|
|
Device initialization: flush buffers, init registers, etc...
|
|
|
Driver wide initialization: allocate memory, semaphores, etc...
|
|
||||||||||||
|
maps the physical address to an instance of the driver object
|
Here is the call graph for this function:

|
|
Hides the private implemenation of the gnat registers. Allows user to allocate memory.
|
1.3.3