Changeset 1433ecda in mainline for uspace/drv/intctl


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/intctl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/apic/apic.c

    r47b2d7e3 r1433ecda  
    6666                uint8_t reg_addr;       /**< APIC Register Address. */
    6767                unsigned int : 24;      /**< Reserved. */
    68         } __attribute__ ((packed));
     68        } __attribute__((packed));
    6969} io_regsel_t;
    7070
     
    8383                        unsigned int masked : 1;        /**< Interrupt Mask. */
    8484                        unsigned int : 15;              /**< Reserved. */
    85                 } __attribute__ ((packed));
     85                } __attribute__((packed));
    8686        };
    8787        union {
     
    9090                        unsigned int : 24;      /**< Reserved. */
    9191                        uint8_t dest : 8;       /**< Destination Field. */
    92                 } __attribute__ ((packed));
     92                } __attribute__((packed));
    9393        };
    94 } __attribute__ ((packed)) io_redirection_reg_t;
     94} __attribute__((packed)) io_redirection_reg_t;
    9595
    9696#define IO_APIC_SIZE    20
     
    148148
    149149        int pin = irq_to_pin(irq);
    150         if (pin == -1)
     150        if (pin == -1)
    151151                return ENOENT;
    152152
  • uspace/drv/intctl/apic/main.c

    r47b2d7e3 r1433ecda  
    9696        errno_t rc;
    9797
    98         ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev);
     98        ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev);
    9999        apic = ddf_dev_data_alloc(dev, sizeof(apic_t));
    100100        if (apic == NULL) {
     
    116116static errno_t apic_dev_remove(ddf_dev_t *dev)
    117117{
    118         apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
     118        apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
    119119
    120         ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev);
     120        ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev);
    121121
    122         return apic_remove(apic);
     122        return apic_remove(apic);
    123123}
    124124
    125125static errno_t apic_dev_gone(ddf_dev_t *dev)
    126126{
    127         apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
     127        apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
    128128
    129         ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev);
     129        ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev);
    130130
    131         return apic_gone(apic);
     131        return apic_gone(apic);
    132132}
    133133
    134134static errno_t apic_fun_online(ddf_fun_t *fun)
    135135{
    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);
    138138}
    139139
    140140static errno_t apic_fun_offline(ddf_fun_t *fun)
    141141{
    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);
    144144}
    145145
  • uspace/drv/intctl/i8259/main.c

    r47b2d7e3 r1433ecda  
    9797        errno_t rc;
    9898
    99         ddf_msg(LVL_DEBUG, "i8259_dev_add(%p)", dev);
     99        ddf_msg(LVL_DEBUG, "i8259_dev_add(%p)", dev);
    100100        i8259 = ddf_dev_data_alloc(dev, sizeof(i8259_t));
    101101        if (i8259 == NULL) {
     
    117117static errno_t i8259_dev_remove(ddf_dev_t *dev)
    118118{
    119         i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
     119        i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
    120120
    121         ddf_msg(LVL_DEBUG, "i8259_dev_remove(%p)", dev);
     121        ddf_msg(LVL_DEBUG, "i8259_dev_remove(%p)", dev);
    122122
    123         return i8259_remove(i8259);
     123        return i8259_remove(i8259);
    124124}
    125125
    126126static errno_t i8259_dev_gone(ddf_dev_t *dev)
    127127{
    128         i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
     128        i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
    129129
    130         ddf_msg(LVL_DEBUG, "i8259_dev_gone(%p)", dev);
     130        ddf_msg(LVL_DEBUG, "i8259_dev_gone(%p)", dev);
    131131
    132         return i8259_gone(i8259);
     132        return i8259_gone(i8259);
    133133}
    134134
    135135static errno_t i8259_fun_online(ddf_fun_t *fun)
    136136{
    137         ddf_msg(LVL_DEBUG, "i8259_fun_online()");
    138         return ddf_fun_online(fun);
     137        ddf_msg(LVL_DEBUG, "i8259_fun_online()");
     138        return ddf_fun_online(fun);
    139139}
    140140
    141141static errno_t i8259_fun_offline(ddf_fun_t *fun)
    142142{
    143         ddf_msg(LVL_DEBUG, "i8259_fun_offline()");
    144         return ddf_fun_offline(fun);
     143        ddf_msg(LVL_DEBUG, "i8259_fun_offline()");
     144        return ddf_fun_offline(fun);
    145145}
    146146
  • uspace/drv/intctl/icp-ic/main.c

    r47b2d7e3 r1433ecda  
    9696        errno_t rc;
    9797
    98         ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev);
     98        ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev);
    9999        icpic = ddf_dev_data_alloc(dev, sizeof(icpic_t));
    100100        if (icpic == NULL) {
     
    116116static errno_t icpic_dev_remove(ddf_dev_t *dev)
    117117{
    118         icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
     118        icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
    119119
    120         ddf_msg(LVL_DEBUG, "icpic_dev_remove(%p)", dev);
     120        ddf_msg(LVL_DEBUG, "icpic_dev_remove(%p)", dev);
    121121
    122         return icpic_remove(icpic);
     122        return icpic_remove(icpic);
    123123}
    124124
    125125static errno_t icpic_dev_gone(ddf_dev_t *dev)
    126126{
    127         icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
     127        icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
    128128
    129         ddf_msg(LVL_DEBUG, "icpic_dev_gone(%p)", dev);
     129        ddf_msg(LVL_DEBUG, "icpic_dev_gone(%p)", dev);
    130130
    131         return icpic_gone(icpic);
     131        return icpic_gone(icpic);
    132132}
    133133
    134134static errno_t icpic_fun_online(ddf_fun_t *fun)
    135135{
    136         ddf_msg(LVL_DEBUG, "icpic_fun_online()");
    137         return ddf_fun_online(fun);
     136        ddf_msg(LVL_DEBUG, "icpic_fun_online()");
     137        return ddf_fun_online(fun);
    138138}
    139139
    140140static errno_t icpic_fun_offline(ddf_fun_t *fun)
    141141{
    142         ddf_msg(LVL_DEBUG, "icpic_fun_offline()");
    143         return ddf_fun_offline(fun);
     142        ddf_msg(LVL_DEBUG, "icpic_fun_offline()");
     143        return ddf_fun_offline(fun);
    144144}
    145145
  • uspace/drv/intctl/obio/main.c

    r47b2d7e3 r1433ecda  
    116116static errno_t obio_dev_remove(ddf_dev_t *dev)
    117117{
    118         obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
     118        obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
    119119
    120         ddf_msg(LVL_DEBUG, "obio_dev_remove(%p)", dev);
     120        ddf_msg(LVL_DEBUG, "obio_dev_remove(%p)", dev);
    121121
    122         return obio_remove(obio);
     122        return obio_remove(obio);
    123123}
    124124
    125125static errno_t obio_dev_gone(ddf_dev_t *dev)
    126126{
    127         obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
     127        obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
    128128
    129         ddf_msg(LVL_DEBUG, "obio_dev_gone(%p)", dev);
     129        ddf_msg(LVL_DEBUG, "obio_dev_gone(%p)", dev);
    130130
    131         return obio_gone(obio);
     131        return obio_gone(obio);
    132132}
    133133
    134134static errno_t obio_fun_online(ddf_fun_t *fun)
    135135{
    136         ddf_msg(LVL_DEBUG, "obio_fun_online()");
    137         return ddf_fun_online(fun);
     136        ddf_msg(LVL_DEBUG, "obio_fun_online()");
     137        return ddf_fun_online(fun);
    138138}
    139139
    140140static errno_t obio_fun_offline(ddf_fun_t *fun)
    141141{
    142         ddf_msg(LVL_DEBUG, "obio_fun_offline()");
    143         return ddf_fun_offline(fun);
     142        ddf_msg(LVL_DEBUG, "obio_fun_offline()");
     143        return ddf_fun_offline(fun);
    144144}
    145145
Note: See TracChangeset for help on using the changeset viewer.