/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to ipecamera.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-03-09 15:55:27 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: csa@dside.dyndns.org-20110309155527-7ui77xsz2f7ms0b8
Support for FPGA registers

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#define ipecamera_datacpy(dst, src, bank)   pcilib_datacpy(dst, src, 4, 1, bank->raw_endianess)
17
17
 
18
 
/*
19
 
int ipecamera_read_register_space(int handle, pcilib_model_t model, pcilib_register_t addr, pcilib_register_value_t *value) {
20
 
    //ipelib_write_
21
 
    //(void *buf, int handle, pcilib_bar_t bar, uintptr_t addr, size_t size);
22
 
    
23
 
}
24
 
 
25
 
int ipecamera_write_register_space(int handle, pcilib_model_t model, pcilib_register_t addr, pcilib_register_value_t value) {
26
 
}
27
 
 
28
 
 
29
 
static int ipecamera_read_byte(int handle, int reg, int bits, uint8_t *value) {
30
 
}
31
 
 
32
 
static int ipecamera_write_byte(int handle, int reg, int bits, uint8_t value) {
33
 
}
34
 
*/
35
 
 
36
18
static pcilib_register_value_t ipecamera_bit_mask[9] = { 0, 1, 3, 7, 15, 31, 63, 127, 255 };
37
19
 
38
20
int ipecamera_read(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t *value) {