Deleted Added
full compact
xhci.h (229096) xhci.h (242774)
1/* $FreeBSD: stable/9/sys/dev/usb/controller/xhci.h 229096 2011-12-31 14:22:02Z hselasky $ */
1/* $FreeBSD: stable/9/sys/dev/usb/controller/xhci.h 242774 2012-11-08 16:04:32Z hselasky $ */
2
3/*-
4 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
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:
9 * 1. Redistributions of source code must retain the above copyright

--- 475 unchanged lines hidden (view full) ---

485};
486
487#define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx)
488#define XHCI_CMD_UNLOCK(sc) sx_xunlock(&(sc)->sc_cmd_sx)
489#define XHCI_CMD_ASSERT_LOCKED(sc) sx_assert(&(sc)->sc_cmd_sx, SA_LOCKED)
490
491/* prototypes */
492
2
3/*-
4 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
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:
9 * 1. Redistributions of source code must retain the above copyright

--- 475 unchanged lines hidden (view full) ---

485};
486
487#define XHCI_CMD_LOCK(sc) sx_xlock(&(sc)->sc_cmd_sx)
488#define XHCI_CMD_UNLOCK(sc) sx_xunlock(&(sc)->sc_cmd_sx)
489#define XHCI_CMD_ASSERT_LOCKED(sc) sx_assert(&(sc)->sc_cmd_sx, SA_LOCKED)
490
491/* prototypes */
492
493uint32_t xhci_get_port_route(void);
493usb_error_t xhci_halt_controller(struct xhci_softc *);
494usb_error_t xhci_init(struct xhci_softc *, device_t);
495usb_error_t xhci_start_controller(struct xhci_softc *);
496void xhci_interrupt(struct xhci_softc *);
497void xhci_uninit(struct xhci_softc *);
498
499#endif /* _XHCI_H_ */
494usb_error_t xhci_halt_controller(struct xhci_softc *);
495usb_error_t xhci_init(struct xhci_softc *, device_t);
496usb_error_t xhci_start_controller(struct xhci_softc *);
497void xhci_interrupt(struct xhci_softc *);
498void xhci_uninit(struct xhci_softc *);
499
500#endif /* _XHCI_H_ */