]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/pcan_dongle.h
The first round of I/O space pointers separation.
[lincan.git] / lincan / include / pcan_dongle.h
index 307071a21ea36208b82073daca40af77d0f0cf71..b9c07ebda4f8027e1d15a64e64f0cadd40b5f6b3 100644 (file)
@@ -83,7 +83,7 @@ struct DONGLE_PORT
   int  nMinor;                                             // the associated minor
   char *type;                                              // the literal type of the device, info only
 
-  struct chip_t *chip;
+  struct canchip_t *chip;
 };
 
 
@@ -95,9 +95,9 @@ int pcan_dongle_release_io(struct candevice_t *candev);
 int pcan_dongle_reset(struct candevice_t *candev); 
 int pcan_dongle_init_hw_data(struct candevice_t *candev);
 int pcan_dongle_init_chip_data(struct candevice_t *candev, int chipnr);
-int pcan_dongle_init_obj_data(struct chip_t *chip, int objnr);
-void pcan_dongle_write_register(unsigned data, unsigned long address);
-unsigned pcan_dongle_read_register(unsigned long address);
+int pcan_dongle_init_obj_data(struct canchip_t *chip, int objnr);
+void pcan_dongle_write_register(unsigned data, can_ioptr_t address);
+unsigned pcan_dongle_read_register(can_ioptr_t address);
 int pcan_dongle_program_irq(struct candevice_t *candev);
 
 #endif // __PCAN_DONGLE_H__