]>
git.zerfleddert.de Git - usb-driver/blob - config.c
c41590f1818fb30dca2155c5bdc245d2cb5accec
5 static struct parport_config pp_config
[4];
7 static void read_config() {
9 static int config_read
= 0;
16 for (i
=0; i
<sizeof(pp_config
)/sizeof(struct parport_config
); i
++) {
18 pp_config
[i
].ppbase
= i
*0x10;
19 pp_config
[i
].real
= 1;
23 pp_config
[3].real
= 0;
24 pp_config
[3].usb_vid
= 0x0403;
25 pp_config
[3].usb_pid
= 0xcff8;
29 unsigned char config_is_real_pport(int num
) {
35 for (i
=0; i
<sizeof(pp_config
)/sizeof(struct parport_config
); i
++) {
36 if (pp_config
[i
].num
== num
) {
37 ret
= pp_config
[i
].real
;
45 unsigned short config_usb_vid(int num
) {
46 unsigned short ret
= 0x00;
51 for (i
=0; i
<sizeof(pp_config
)/sizeof(struct parport_config
); i
++) {
52 if (pp_config
[i
].num
== num
) {
53 ret
= pp_config
[i
].usb_vid
;
61 unsigned short config_usb_pid(int num
) {
62 unsigned short ret
= 0x00;
67 for (i
=0; i
<sizeof(pp_config
)/sizeof(struct parport_config
); i
++) {
68 if (pp_config
[i
].num
== num
) {
69 ret
= pp_config
[i
].usb_pid
;
78 int config_init_port(int num) {}
79 config_get_transfer_fn(int num) {}