Skip to content

FORMOSA Driver

FORMOSA Driver provides a set of C APIs to access the FORMOSA device. The driver is designed to be hardware abstraction layer (HAL) for FORMOSA device. The API include reading and writing mmio, allocating and accessing the device memory, and configuring the device.

The HAL API is designed to be platform independent. The driver could be used on any higher level driver, such as the PoCL driver or the graphics driver. However, the implementation of the HAL API varies on different platforms. The implementations are placed under the src directory. Currently, the casvp platform is supported.

Usage

To use the FORMOSA Driver, you should include the header file formosa-driver.h and link with the platform-specific implementation of the driver. The driver library is statically linked. Currently available libraries are:

  • libformosa-driver-casvp.a: The FORMOSA Driver for the casvp platform.