int nMinor; // the associated minor
char *type; // the literal type of the device, info only
- struct chip_t *chip;
+ struct canchip_t *chip;
};
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__