Defines | Typedefs | Enumerations | Functions

vicp.h File Reference


Detailed Description

Describes the interface to the VICP manager.

The VICP user interface library wraps file system calls to an associated kernel module (irqk.ko), which needs to be loaded in order for calls to to this library to succeed.

To install irqk.ko, enter % insmod irqk.ko on a Linux command line.

Go to the source code of this file.

Defines

#define VICP_VERSION   0x01000000
#define VICP_NUMRESOURCES   6

Typedefs

typedef enum VICP_Status VICP_Status
 Status codes for VICP API return values.
typedef enum VICP_ResourceType VICP_ResourceType
 Resource types to be used for all APIs.
typedef enum VICP_InterruptLine VICP_InterruptLine
 Source of VICP resource interrupt.
typedef enum VICP_InterruptType VICP_InterruptType
 Type of ARM interrupt support.

Enumerations

enum  VICP_Status {
  VICP_OK = 0,
  VICP_EFAIL,
  VICP_ENOCHANNEL,
  VICP_ENOINIT
}
 

Status codes for VICP API return values.

More...
enum  VICP_ResourceType {
  VICP_IMX0,
  VICP_IMX1,
  VICP_MJCP,
  VICP_NSF,
  VICP_HDVICP0,
  VICP_HDVICP1
}
 

Resource types to be used for all APIs.

More...
enum  VICP_InterruptLine {
  VICP_FIXED,
  VICP_FLEXIBLE
}
 

Source of VICP resource interrupt.

More...
enum  VICP_InterruptType {
  VICP_IRQ,
  VICP_FIQ
}
 

Type of ARM interrupt support.

More...

Functions

int VICP_init (void)
 VICP initialization API.
int VICP_exit (void)
 VICP finalization API.
VICP_Status VICP_register (VICP_ResourceType resource, VICP_InterruptLine intrLine, VICP_InterruptType intrType)
 Registers resource with requested interrupt type.
VICP_Status VICP_unregister (VICP_ResourceType resource)
 Frees previously requested resource.
VICP_Status VICP_wait (VICP_ResourceType resource)
 Waits for the transfer corresponding to this resource to complete.
VICP_Status VICP_done (VICP_ResourceType resource, int *done)
 Checks if the transfer corresponding to this resource is complete.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2011, Texas Instruments Incorporated