Ignore:
Timestamp:
2009-04-21T19:52:32Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5646813
Parents:
f2d2c7ba
Message:

Convert sgcn to the new HID wiring mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/drivers/sgcn.h

    rf2d2c7ba r253d3d0  
    3838#include <arch/types.h>
    3939#include <console/chardev.h>
     40#include <proc/thread.h>
    4041
    4142/* number of bytes in the TOC magic, including the NULL-terminator */
     
    117118} __attribute__ ((packed)) sgcn_buffer_header_t;
    118119
    119 void sgcn_grab(void);
    120 void sgcn_release(void);
    121 indev_t *sgcnin_init(void);
    122 void sgcnout_init(void);
     120typedef struct {
     121        thread_t *thread;
     122        indev_t *srlnin;
     123} sgcn_instance_t;
     124
     125extern void sgcn_grab(void);
     126extern void sgcn_release(void);
     127extern sgcn_instance_t *sgcnin_init(void);
     128extern void sgcnin_wire(sgcn_instance_t *, indev_t *);
     129extern void sgcnout_init(void);
    123130
    124131#endif
Note: See TracChangeset for help on using the changeset viewer.