hms.c (9b78891df13d12abaf8d0f0b0ca3e7d5f0e857e3) | hms.c (42e2a173c74e88cf0436c79291f89d76328ddc7b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 215 unchanged lines hidden (view full) --- 224 return (ENXIO); 225 226 if (hidmap_test_cap(sc->caps, HMS_ABS_X) || 227 hidmap_test_cap(sc->caps, HMS_ABS_Y)) 228 hidbus_set_desc(dev, "Tablet"); 229 else 230 hidbus_set_desc(dev, "Mouse"); 231 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2020 Vladimir Kondratyev <wulf@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 215 unchanged lines hidden (view full) --- 224 return (ENXIO); 225 226 if (hidmap_test_cap(sc->caps, HMS_ABS_X) || 227 hidmap_test_cap(sc->caps, HMS_ABS_Y)) 228 hidbus_set_desc(dev, "Tablet"); 229 else 230 hidbus_set_desc(dev, "Mouse"); 231 |
232 return (BUS_PROBE_DEFAULT); | 232 return (BUS_PROBE_GENERIC); |
233} 234 235static int 236hms_attach(device_t dev) 237{ 238 struct hms_softc *sc = device_get_softc(dev); 239 const struct hid_device_info *hw = hid_get_device_info(dev); 240 struct hidmap_hid_item *hi; --- 97 unchanged lines hidden --- | 233} 234 235static int 236hms_attach(device_t dev) 237{ 238 struct hms_softc *sc = device_get_softc(dev); 239 const struct hid_device_info *hw = hid_get_device_info(dev); 240 struct hidmap_hid_item *hi; --- 97 unchanged lines hidden --- |