FCVG_OPEN(3X) — NEWS-OS Programmer’s Manual
NAME
fcvg_open, fcvg_close − open/close of the FCVG device
SYNOPSIS
#include <fcvg.h>
int fcvg_open()
int fcvg_close()
DESCRIPTION
fcvg_open
Opens the FCVG device. When the full color video graphics library is used, this routine must be called first.
fcvg_close
Closes the FCVG device.
RESTRICTION
Since approximately 5.3 Mbytes of area in the address space of the VME bus is mapped to the user process space, the 5.3 Mbytes user process space is temporarily used in fcvg_open. Therefore, if there is not enogh space avaliable in the user process when fcvg_open is called, open fails. This 5.3 Mbytes area is released in fcvg_open.
RETURN VALUE
When the command is executed normally, 0 is returned. When an error occurs, a negative value is returned.
−1 Special file /dev/vmemem cannot be opened.
−2 There is not enough space for the user process.
−3 There is not enough space for the user process.
−4 mmap system call is failed.
−5 Setting the address modifier code of the VME interface board is failed.
−6 Setting the upper address of the VME interface board is failed.
FILES
/usr/src/sony/lib/libfcvg/∗ directory for the source code of the library
/usr/sony/demo/NWB224 directory for a sample program
/usr/sony/lib/libfcvg.a FCVG library
/usr/sony/include/fcvg.h header file
/usr/sony/include/fcvg_lib.h header file
/usr/sony/include/fcvg_reg.h header file
SEE ALSO
libfcvg(3X), mmap(2)
Chapter 8 "Full-Color Video Graphics Interface Board" in NEWS-OS Release 4.0 Programmer’s Guide.
NEWS-OSRelease 4.2.1R