Lines Matching defs:psm

62 __FBSDID("$FreeBSD: stable/11/sys/dev/atkbdc/psm.c 362209 2020-06-15 22:43:46Z wulf $");
100 #include <dev/atkbdc/psm.h>
767 VLOG(2, (LOG_DEBUG, "psm: ENABLE_DEV return code:%04x\n", res));
778 VLOG(2, (LOG_DEBUG, "psm: DISABLE_DEV return code:%04x\n", res));
801 VLOG(2, (LOG_DEBUG, "psm: SEND_AUX_DEV_%s return code:%04x\n",
812 VLOG(1, (LOG_DEBUG, "psm: %s %02x %02x %02x\n",
826 VLOG(2, (LOG_DEBUG, "psm: SEND_DEV_ID return code:%04x\n", res));
834 VLOG(2, (LOG_DEBUG, "psm: device ID: %04x\n", id));
845 VLOG(2, (LOG_DEBUG, "psm: SET_SAMPLING_RATE (%d) %04x\n", rate, res));
865 VLOG(2, (LOG_DEBUG, "psm: SET_SCALING%s return code:%04x\n",
878 VLOG(2, (LOG_DEBUG, "psm: SET_RESOLUTION (%d) %04x\n", val, res));
893 VLOG(2, (LOG_DEBUG, "psm: SET_STREAM_MODE return code:%04x\n", res));
996 log(LOG_ERR, "psm: keyboard controller failed.\n");
999 VLOG(1, (LOG_ERR, "psm: keyboard port failed.\n"));
1009 log(LOG_ERR, "psm: failed to restore the keyboard controller "
1040 "psm%d: strange result for test aux port (%d).\n",
1050 log(LOG_ERR, "psm%d: the aux port is not functioning (%d).\n",
1067 log(LOG_ERR, "psm%d: failed to reset the aux device.\n",
1078 log(LOG_ERR, "psm%d: failed to enable the aux device.\n",
1105 log(LOG_DEBUG, "psm%d: failed to get status (doinitialize).\n",
1126 * Absolute Mode bit. But a verbose boot or debug.psm.loglevel=5
1135 log(LOG_ERR, "psm%d: failed to enable "
1145 VLOG(5, (LOG_DEBUG, "psm%d: Synaptis Absolute Mode "
1160 "psm%d: enable tap and drag gestures\n",
1165 "psm%d: disable tap and drag gestures\n",
1194 "psm%d: failed to enable the device (doopen).\n",
1201 log(LOG_DEBUG, "psm%d: failed to get status (doopen).\n",
1213 "psm%d: failed to enable the aux interrupt (doopen).\n",
1245 "psm%d: current command byte: %04x (reinitialize).\n",
1257 "psm%d: unable to set the command byte (reinitialize).\n",
1284 "psm%d: the aux device has gone! (reinitialize).\n",
1297 log(LOG_ERR, "psm%d: failed to enable the device "
1306 log(LOG_ERR, "psm%d: failed to disable the aux port "
1316 /* psm driver entry points */
1322 device_t psm;
1329 psm = BUS_ADD_CHILD(parent, KBDC_RID_AUX, driver->name, unit);
1330 if (psm == NULL)
1333 irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX);
1350 bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
1406 printf("psm%d: unable to lock the controller.\n", unit);
1425 printf("psm%d: current command byte:%04x\n", unit,
1429 printf("psm%d: unable to get the current command byte value.\n",
1448 printf("psm%d: unable to set the command byte.\n", unit);
1476 printf("psm%d: strange result for test aux port "
1489 printf("psm%d: the aux port is not functioning (%d).\n",
1513 printf("psm%d: failed to reset the aux "
1519 printf("psm%d: failed to reset the aux device "
1536 printf("psm%d: failed to enable the aux device.\n",
1559 printf("psm%d: unknown device type (%d).\n", unit,
1590 printf("psm%d: found %s\n", unit,
1620 printf("psm%d: SET_DEFAULTS return code:%04x\n", unit, i);
1644 printf("psm%d: failed to get status.\n", unit);
1665 printf("psm%d: unable to set the command byte.\n", unit);
1971 if ((error = make_dev_s(&mda, &sc->dev, "psm%d", unit)) != 0)
2016 printf("psm%d: model %s, device ID %d\n",
2019 printf("psm%d: model %s, device ID %d-%02x, %d buttons\n",
2022 printf("psm%d: config:%08x, flags:%08x, packet size:%d\n",
2024 printf("psm%d: syncmask:%02x, syncbits:%02x%s\n",
2257 "psm%d: unable to set the command byte (psmopen).\n",
2304 "psm%d: failed to disable the aux int (psmclose).\n",
2331 "psm%d: failed to disable the device (psmclose).\n",
2337 "psm%d: failed to get status (psmclose).\n",
2350 "psm%d: failed to disable the aux port (psmclose).\n",
2591 VLOG(4, (LOG_DEBUG, "psm: cmd 0x%x\n", buf[i]));
2594 "psm: cmd 0x%x failed.\n", buf[i]));
2941 VLOG(6, (LOG_DEBUG, "psm%d: lost interrupt?\n", sc->unit));
2950 /* Add all sysctls under the debug.psm and hw.psm nodes */
2951 static SYSCTL_NODE(_debug, OID_AUTO, psm, CTLFLAG_RD, 0, "ps/2 mouse");
2952 static SYSCTL_NODE(_hw, OID_AUTO, psm, CTLFLAG_RD, 0, "ps/2 mouse");
5802 /* hw.psm.synaptics.softbuttons_y */
5811 /* hw.psm.synaptics.softbutton2_x */
5820 /* hw.psm.synaptics.softbutton3_x */
5838 /* Attach extra synaptics sysctl nodes under hw.psm.synaptics */
5844 /* hw.psm.synaptics.directional_scrolls. */
5853 /* hw.psm.synaptics.max_x. */
5861 /* hw.psm.synaptics.max_y. */
5879 /* hw.psm.synaptics.two_finger_scroll. */
5886 /* hw.psm.synaptics.min_pressure. */
5895 /* hw.psm.synaptics.max_pressure. */
5904 /* hw.psm.synaptics.max_width. */
5913 /* hw.psm.synaptics.top_margin. */
5922 /* hw.psm.synaptics.right_margin. */
5931 /* hw.psm.synaptics.bottom_margin. */
5940 /* hw.psm.synaptics.left_margin. */
5949 /* hw.psm.synaptics.na_top. */
5959 /* hw.psm.synaptics.na_right. */
5969 /* hw.psm.synaptics.na_bottom. */
5979 /* hw.psm.synaptics.na_left. */
5989 /* hw.psm.synaptics.window_min. */
5998 /* hw.psm.synaptics.window_max. */
6007 /* hw.psm.synaptics.multiplicator. */
6016 /* hw.psm.synaptics.weight_current. */
6025 /* hw.psm.synaptics.weight_previous. */
6034 /* hw.psm.synaptics.weight_previous_na. */
6043 /* hw.psm.synaptics.weight_len_squared. */
6053 /* hw.psm.synaptics.div_min. */
6062 /* hw.psm.synaptics.div_max. */
6071 /* hw.psm.synaptics.div_max_na. */
6080 /* hw.psm.synaptics.div_len. */
6089 /* hw.psm.synaptics.tap_max_delta. */
6098 /* hw.psm.synaptics.tap_min_queue. */
6107 /* hw.psm.synaptics.taphold_timeout. */
6118 /* hw.psm.synaptics.vscroll_hor_area. */
6127 /* hw.psm.synaptics.vscroll_ver_area. */
6136 /* hw.psm.synaptics.vscroll_min_delta. */
6145 /* hw.psm.synaptics.vscroll_div_min. */
6154 /* hw.psm.synaptics.vscroll_div_min. */
6163 /* hw.psm.synaptics.touchpad_off. */
6172 /* hw.psm.synaptics.natural_scroll. */
6274 /* psm has a special support for GenMouse + SynTouchpad combination */
6301 printf("psm%d: AUX MUX hang detected!\n", sc->unit);
6302 printf("Consider adding hw.psm.mux_disabled=1 to "
6678 VLOG(2, (LOG_NOTICE, "psm: setting pass-through mode.\n"));
6685 VLOG(2, (LOG_NOTICE, "psm: turning pass-through mode off.\n"));
6776 /* Attach extra trackpoint sysctl nodes under hw.psm.trackpoint */
6782 /* hw.psm.trackpoint.sensitivity */
6791 /* hw.psm.trackpoint.negative_inertia */
6800 /* hw.psm.trackpoint.upper_plateau */
6809 /* hw.psm.trackpoint.backup_range */
6818 /* hw.psm.trackpoint.drag_hysteresis */
6827 /* hw.psm.trackpoint.minimum_drag */
6836 /* hw.psm.trackpoint.up_threshold */
6845 /* hw.psm.trackpoint.threshold */
6854 /* hw.psm.trackpoint.jenks_curvature */
6863 /* hw.psm.trackpoint.z_time */
6872 /* hw.psm.trackpoint.press_to_select */
6881 /* hw.psm.trackpoint.skip_backups */
7382 VLOG(2, (LOG_NOTICE, "psm%d: system resume hook called.\n", unit));
7399 VLOG(2, (LOG_DEBUG, "psm%d: system resume hook exiting.\n", unit));
7404 DRIVER_MODULE(psm, atkbdc, psm_driver, psm_devclass, 0, 0);
7406 MODULE_DEPEND(psm, evdev, 1, 1, 1);
7508 device_t psm;
7512 psm = device_find_child(atkbdc, PSM_DRIVER_NAME,
7514 if (psm == NULL)
7516 if (device_get_state(psm) != DS_NOTPRESENT)
7522 bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1);
7525 return (device_probe_and_attach(psm));