Changeset 1433ecda in mainline for uspace/drv/intctl/apic
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/intctl/apic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.c
r47b2d7e3 r1433ecda 66 66 uint8_t reg_addr; /**< APIC Register Address. */ 67 67 unsigned int : 24; /**< Reserved. */ 68 } __attribute__ ((packed));68 } __attribute__((packed)); 69 69 } io_regsel_t; 70 70 … … 83 83 unsigned int masked : 1; /**< Interrupt Mask. */ 84 84 unsigned int : 15; /**< Reserved. */ 85 } __attribute__ ((packed));85 } __attribute__((packed)); 86 86 }; 87 87 union { … … 90 90 unsigned int : 24; /**< Reserved. */ 91 91 uint8_t dest : 8; /**< Destination Field. */ 92 } __attribute__ ((packed));92 } __attribute__((packed)); 93 93 }; 94 } __attribute__ ((packed)) io_redirection_reg_t;94 } __attribute__((packed)) io_redirection_reg_t; 95 95 96 96 #define IO_APIC_SIZE 20 … … 148 148 149 149 int pin = irq_to_pin(irq); 150 if (pin == -1)150 if (pin == -1) 151 151 return ENOENT; 152 152 -
uspace/drv/intctl/apic/main.c
r47b2d7e3 r1433ecda 96 96 errno_t rc; 97 97 98 ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev);98 ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev); 99 99 apic = ddf_dev_data_alloc(dev, sizeof(apic_t)); 100 100 if (apic == NULL) { … … 116 116 static errno_t apic_dev_remove(ddf_dev_t *dev) 117 117 { 118 apic_t *apic = (apic_t *)ddf_dev_data_get(dev);118 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); 119 119 120 ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev);120 ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev); 121 121 122 return apic_remove(apic);122 return apic_remove(apic); 123 123 } 124 124 125 125 static errno_t apic_dev_gone(ddf_dev_t *dev) 126 126 { 127 apic_t *apic = (apic_t *)ddf_dev_data_get(dev);127 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); 128 128 129 ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev);129 ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev); 130 130 131 return apic_gone(apic);131 return apic_gone(apic); 132 132 } 133 133 134 134 static errno_t apic_fun_online(ddf_fun_t *fun) 135 135 { 136 ddf_msg(LVL_DEBUG, "apic_fun_online()");137 return ddf_fun_online(fun);136 ddf_msg(LVL_DEBUG, "apic_fun_online()"); 137 return ddf_fun_online(fun); 138 138 } 139 139 140 140 static errno_t apic_fun_offline(ddf_fun_t *fun) 141 141 { 142 ddf_msg(LVL_DEBUG, "apic_fun_offline()");143 return ddf_fun_offline(fun);142 ddf_msg(LVL_DEBUG, "apic_fun_offline()"); 143 return ddf_fun_offline(fun); 144 144 } 145 145
Note:
See TracChangeset
for help on using the changeset viewer.
