]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/main.h
Changes to prepare work area for C_CAN testing and rethinking
[lincan.git] / lincan / include / main.h
index 0a12ffe2a0bd4da961618b7c73374e2553ebb070..e05e774fb6a3bfb94d69dcde35be1ca61b9fcb19 100644 (file)
@@ -74,7 +74,7 @@ struct candevice_t {
        char *hwname;                   /* text board type */
        int candev_idx;                 /* board index in canhardware_t.candevice[] */
        unsigned long io_addr;          /* IO/physical MEM address */
-       unsigned long res_addr;         /* optional seset register port */
+       unsigned long res_addr;         /* optional reset register port */
        unsigned long dev_base_addr;    /* CPU translated IO/virtual MEM address */
        unsigned int flags;
        int nr_all_chips;
@@ -323,6 +323,7 @@ struct hwspecops_t {
  * @start_chip: starts chip message processing
  * @stop_chip: stops chip message processing
  * @irq_handler: interrupt service routine
+ * @irq_accept: optional fast irq accept routine responsible for blocking further interrupts
  */
 struct chipspecops_t {
        int (*chip_config)(struct canchip_t *chip);
@@ -352,6 +353,7 @@ struct chipspecops_t {
        int (*start_chip)(struct canchip_t *chip);
        int (*stop_chip)(struct canchip_t *chip);
        int (*irq_handler)(int irq, struct canchip_t *chip);
+       int (*irq_accept)(int irq, struct canchip_t *chip);
 };
 
 struct mem_addr {