最終更新:2015-10-23 (金) 13:49:53 (3101d)  

hid_ll_driver
Top / hid_ll_driver

low level driver callbacks

メモ

  • hid_driver
  • Transport drivers attach a constant "struct hid_ll_driver" object with each device

定義

  • struct hid_ll_driver {
            int (*start)(struct hid_device *hdev);
            void (*stop)(struct hid_device *hdev);
    
            int (*open)(struct hid_device *hdev);
            void (*close)(struct hid_device *hdev);
    
            int (*power)(struct hid_device *hdev, int level);
    
            int (*parse)(struct hid_device *hdev);
    
            void (*request)(struct hid_device *hdev,
                            struct hid_report *report, int reqtype);
    
            int (*wait)(struct hid_device *hdev);
    
            int (*raw_request) (struct hid_device *hdev, unsigned char reportnum,
                                __u8 *buf, size_t len, unsigned char rtype,
                                int reqtype);
    
            int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len);
    
            int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
    };

コールバック

ドライバ

usb_hid_driver (USB)

コールバック

hidp_hid_driver? (Bluetooth)

  • net/bluetooth/hidp/core.c?

i2c_hid_ll_driver? (I2C)

uhid_hid_driver? (UHID)

mousevsc_ll_driver? (Hyper-V)