equal
deleted
inserted
replaced
55 |
55 |
56 typedef struct |
56 typedef struct |
57 { |
57 { |
58 ec_master_t *master; /**< master owning the device */ |
58 ec_master_t *master; /**< master owning the device */ |
59 struct cdev cdev; /**< character device */ |
59 struct cdev cdev; /**< character device */ |
|
60 atomic_t available; /**< allow only one open() */ |
60 } |
61 } |
61 ec_xmldev_t; |
62 ec_xmldev_t; |
62 |
63 |
63 /*****************************************************************************/ |
64 /*****************************************************************************/ |
64 |
65 |
65 int ec_xmldev_init(ec_xmldev_t *, ec_master_t *, dev_t); |
66 int ec_xmldev_init(ec_xmldev_t *, ec_master_t *, dev_t); |
66 void ec_xmldev_clear(ec_xmldev_t *); |
67 void ec_xmldev_clear(ec_xmldev_t *); |
67 |
68 |
|
69 int ec_xmldev_request(ec_xmldev_t *, uint32_t, uint32_t); |
|
70 |
68 /*****************************************************************************/ |
71 /*****************************************************************************/ |
69 |
72 |
70 #endif |
73 #endif |