FreeBSD kernel usb device Code
ukbd_softc Struct Reference
Collaboration diagram for ukbd_softc:

Data Fields

keyboard_t sc_kbd
 
keymap_t sc_keymap
 
accentmap_t sc_accmap
 
fkeytab_t sc_fkeymap [UKBD_NFKEY]
 
uint64_t sc_loc_key_valid [howmany(UKBD_NKEYCODE, 64)]
 
struct hid_location sc_loc_apple_eject
 
struct hid_location sc_loc_apple_fn
 
struct hid_location sc_loc_key [UKBD_NKEYCODE]
 
struct hid_location sc_loc_numlock
 
struct hid_location sc_loc_capslock
 
struct hid_location sc_loc_scrolllock
 
struct usb_callout sc_callout
 
struct ukbd_data sc_ndata
 
struct ukbd_data sc_odata
 
struct thread * sc_poll_thread
 
struct usb_devicesc_udev
 
struct usb_interfacesc_iface
 
struct usb_xfersc_xfer [UKBD_N_TRANSFER]
 
sbintime_t sc_co_basetime
 
int sc_delay
 
uint32_t sc_repeat_time
 
uint32_t sc_input [UKBD_IN_BUF_SIZE]
 
uint32_t sc_time_ms
 
uint32_t sc_composed_char
 
uint32_t sc_buffered_char [2]
 
uint32_t sc_flags
 
int sc_mode
 
int sc_state
 
int sc_accents
 
int sc_polling
 
int sc_led_size
 
int sc_kbd_size
 
uint16_t sc_inputs
 
uint16_t sc_inputhead
 
uint16_t sc_inputtail
 
uint8_t sc_leds
 
uint8_t sc_iface_index
 
uint8_t sc_iface_no
 
uint8_t sc_id_apple_eject
 
uint8_t sc_id_apple_fn
 
uint8_t sc_id_loc_key [UKBD_NKEYCODE]
 
uint8_t sc_id_numlock
 
uint8_t sc_id_capslock
 
uint8_t sc_id_scrolllock
 
uint8_t sc_kbd_id
 
uint8_t sc_repeat_key
 
uint8_t sc_buffer [UKBD_BUFFER_SIZE]
 

Detailed Description

Definition at line 138 of file ukbd.c.

Field Documentation

◆ sc_accents

int ukbd_softc::sc_accents

Definition at line 188 of file ukbd.c.

Referenced by ukbd_clear_state(), ukbd_ioctl_locked(), and ukbd_read_char_locked().

◆ sc_accmap

accentmap_t ukbd_softc::sc_accmap

Definition at line 141 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_buffer

uint8_t ukbd_softc::sc_buffer[UKBD_BUFFER_SIZE]

Definition at line 209 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_set_leds_callback().

◆ sc_buffered_char

uint32_t ukbd_softc::sc_buffered_char[2]

Definition at line 169 of file ukbd.c.

Referenced by ukbd_check(), ukbd_clear_state(), ukbd_key2scan(), ukbd_read(), and ukbd_read_char_locked().

◆ sc_callout

struct usb_callout ukbd_softc::sc_callout

Definition at line 150 of file ukbd.c.

Referenced by ukbd_attach(), ukbd_detach(), and ukbd_start_timer().

◆ sc_co_basetime

sbintime_t ukbd_softc::sc_co_basetime

Definition at line 162 of file ukbd.c.

Referenced by ukbd_interrupt(), and ukbd_start_timer().

◆ sc_composed_char

uint32_t ukbd_softc::sc_composed_char

Definition at line 167 of file ukbd.c.

Referenced by ukbd_check_char_locked(), ukbd_clear_state(), and ukbd_read_char_locked().

◆ sc_delay

int ukbd_softc::sc_delay

Definition at line 163 of file ukbd.c.

Referenced by ukbd_interrupt(), ukbd_poll(), ukbd_start_timer(), and ukbd_timeout().

◆ sc_fkeymap

fkeytab_t ukbd_softc::sc_fkeymap[UKBD_NFKEY]

Definition at line 142 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_flags

◆ sc_id_apple_eject

uint8_t ukbd_softc::sc_id_apple_eject

Definition at line 200 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_id_apple_fn

uint8_t ukbd_softc::sc_id_apple_fn

Definition at line 201 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_id_capslock

uint8_t ukbd_softc::sc_id_capslock

Definition at line 204 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_id_loc_key

uint8_t ukbd_softc::sc_id_loc_key[UKBD_NKEYCODE]

Definition at line 202 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_id_numlock

uint8_t ukbd_softc::sc_id_numlock

Definition at line 203 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_id_scrolllock

uint8_t ukbd_softc::sc_id_scrolllock

Definition at line 205 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_iface

struct usb_interface* ukbd_softc::sc_iface

Definition at line 156 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_iface_index

uint8_t ukbd_softc::sc_iface_index

Definition at line 198 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_iface_no

uint8_t ukbd_softc::sc_iface_no

Definition at line 199 of file ukbd.c.

Referenced by ukbd_attach(), and ukbd_set_leds_callback().

◆ sc_input

uint32_t ukbd_softc::sc_input[UKBD_IN_BUF_SIZE]

Definition at line 165 of file ukbd.c.

Referenced by ukbd_get_key(), and ukbd_put_key().

◆ sc_inputhead

uint16_t ukbd_softc::sc_inputhead

Definition at line 194 of file ukbd.c.

Referenced by ukbd_get_key().

◆ sc_inputs

uint16_t ukbd_softc::sc_inputs

◆ sc_inputtail

uint16_t ukbd_softc::sc_inputtail

Definition at line 195 of file ukbd.c.

Referenced by ukbd_put_key().

◆ sc_kbd

keyboard_t ukbd_softc::sc_kbd

◆ sc_kbd_id

uint8_t ukbd_softc::sc_kbd_id

Definition at line 206 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_kbd_size

int ukbd_softc::sc_kbd_size

Definition at line 191 of file ukbd.c.

Referenced by ukbd_parse_hid().

◆ sc_keymap

keymap_t ukbd_softc::sc_keymap

Definition at line 140 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_led_size

int ukbd_softc::sc_led_size

Definition at line 190 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_leds

uint8_t ukbd_softc::sc_leds

Definition at line 197 of file ukbd.c.

Referenced by ukbd_set_leds(), and ukbd_set_leds_callback().

◆ sc_loc_apple_eject

struct hid_location ukbd_softc::sc_loc_apple_eject

Definition at line 144 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_loc_apple_fn

struct hid_location ukbd_softc::sc_loc_apple_fn

Definition at line 145 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_loc_capslock

struct hid_location ukbd_softc::sc_loc_capslock

Definition at line 148 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_loc_key

struct hid_location ukbd_softc::sc_loc_key[UKBD_NKEYCODE]

Definition at line 146 of file ukbd.c.

Referenced by ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_loc_key_valid

uint64_t ukbd_softc::sc_loc_key_valid[howmany(UKBD_NKEYCODE, 64)]

Definition at line 143 of file ukbd.c.

Referenced by ukbd_any_key_valid(), ukbd_intr_callback(), and ukbd_parse_hid().

◆ sc_loc_numlock

struct hid_location ukbd_softc::sc_loc_numlock

Definition at line 147 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_loc_scrolllock

struct hid_location ukbd_softc::sc_loc_scrolllock

Definition at line 149 of file ukbd.c.

Referenced by ukbd_parse_hid(), and ukbd_set_leds_callback().

◆ sc_mode

int ukbd_softc::sc_mode

Definition at line 186 of file ukbd.c.

Referenced by ukbd_attach(), ukbd_ioctl_locked(), and ukbd_read_char_locked().

◆ sc_ndata

struct ukbd_data ukbd_softc::sc_ndata

◆ sc_odata

struct ukbd_data ukbd_softc::sc_odata

Definition at line 152 of file ukbd.c.

Referenced by ukbd_any_key_pressed(), ukbd_clear_state(), ukbd_interrupt(), and ukbd_intr_callback().

◆ sc_poll_thread

struct thread* ukbd_softc::sc_poll_thread

Definition at line 154 of file ukbd.c.

Referenced by ukbd_poll().

◆ sc_polling

int ukbd_softc::sc_polling

Definition at line 189 of file ukbd.c.

Referenced by ukbd_poll().

◆ sc_repeat_key

uint8_t ukbd_softc::sc_repeat_key

Definition at line 207 of file ukbd.c.

Referenced by ukbd_clear_state(), and ukbd_interrupt().

◆ sc_repeat_time

uint32_t ukbd_softc::sc_repeat_time

Definition at line 164 of file ukbd.c.

Referenced by ukbd_clear_state(), and ukbd_interrupt().

◆ sc_state

int ukbd_softc::sc_state

Definition at line 187 of file ukbd.c.

Referenced by ukbd_attach(), ukbd_clear_state(), ukbd_ioctl_locked(), and ukbd_read_char_locked().

◆ sc_time_ms

uint32_t ukbd_softc::sc_time_ms

Definition at line 166 of file ukbd.c.

Referenced by ukbd_do_poll(), ukbd_interrupt(), and ukbd_timeout().

◆ sc_udev

struct usb_device* ukbd_softc::sc_udev

Definition at line 155 of file ukbd.c.

Referenced by ukbd_attach().

◆ sc_xfer

struct usb_xfer* ukbd_softc::sc_xfer[UKBD_N_TRANSFER]

Definition at line 157 of file ukbd.c.

Referenced by ukbd_attach(), ukbd_detach(), ukbd_do_poll(), ukbd_get_key(), and ukbd_set_leds().


The documentation for this struct was generated from the following file: