
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 46
edt_intfc_read_32
Description
A convenience routine, partly for backward compatability, to access the XILINX interface registers.
The register descriptors used be edt_reg_write() can also be used, since edt_intfc_read_32 masks off
the offset.
Syntax
uint_t
edt_intfc_read_32(EdtDev *edt_p, uint_t offset)
Arguments
edt_p
device struct returned from edt_open
offset
integer offset into XILINX interface, or register descriptor
val
unsigned character value to set
Example
u_int r_actkbs=edt_intfc_read_32(edt_p, EDT_ACT_KBS);
Return
void
edt_msleep
Description
Causes the process to sleep for the specified number of microseconds.
Syntax
#include "edtinc.h"
int edt_msleep(u_int usecs) ;
Arguments
usecs
The number of microseconds for the process to sleep.
Return
0 on success; –1 on error. If an error occurs, call edt_perror() to get the system error message.
edt_alloc
Description
Convenience routine to allocate memory in a system-independent way. The buffer returned is page
aligned. Uses VirtualAlloc on Windows NT systems, valloc on UNIX-based systems.
Syntax
#include "edtinc.h"
int
edt_alloc(int nbytes)
Komentarze do niniejszej Instrukcji