Changeset 7943c43 in mainline for uspace/drv/char/ps2mouse/chardev.h
- Timestamp:
- 2012-01-16T22:45:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32817cc, 3fe58d3c
- Parents:
- 9117ef9b (diff), 3ea725e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ps2mouse/chardev.h
r9117ef9b r7943c43 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2011 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup kbd_port 30 * @ingroup kbd 28 /** @addtogroup drvmouse 31 29 * @{ 32 30 */ 33 34 31 /** @file 35 * @brief i8042 portdriver.32 * @brief ps/2 mouse driver. 36 33 */ 37 34 38 #ifndef i8042_H_39 #define i8042_H_35 #ifndef _CHARDEV_H_ 36 #define _CHARDEV_H_ 40 37 41 #include <sys/types.h> 42 #include <libarch/ddi.h> 38 #include <libarch/types.h> 43 39 #include <async.h> 44 40 45 /** i8042 HW I/O interface */ 46 struct i8042 { 47 ioport8_t data; 48 uint8_t pad[3]; 49 ioport8_t status; 50 } __attribute__ ((packed)); 51 typedef struct i8042 i8042_t; 52 53 /** Softstate structure, one for each serial port (primary and aux). */ 54 typedef struct { 55 service_id_t service_id; 56 async_sess_t *client_sess; 57 } i8042_port_t; 41 ssize_t chardev_read(async_exch_t *, void *, size_t); 42 ssize_t chardev_write(async_exch_t *, const void *, size_t); 58 43 59 44 #endif 60 61 45 /** 62 46 * @}
Note:
See TracChangeset
for help on using the changeset viewer.