Deleted Added
sdiff udiff text old ( 227309 ) new ( 228483 )
full compact
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci.c 227309 2011-11-07 15:43:11Z ed $");
3
4/*-
5 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

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

1347 atmegadci_clocks_off(sc);
1348
1349 /* disable USB PAD regulator */
1350 ATMEGA_WRITE_1(sc, ATMEGA_UHWCON, 0);
1351
1352 USB_BUS_UNLOCK(&sc->sc_bus);
1353}
1354
1355void
1356atmegadci_suspend(struct atmegadci_softc *sc)
1357{
1358 return;
1359}
1360
1361void
1362atmegadci_resume(struct atmegadci_softc *sc)
1363{
1364 return;
1365}
1366
1367static void
1368atmegadci_do_poll(struct usb_bus *bus)
1369{
1370 struct atmegadci_softc *sc = ATMEGA_BUS2SC(bus);
1371
1372 USB_BUS_LOCK(&sc->sc_bus);

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

2121 }
2122 if ((edesc->bmAttributes & UE_XFERTYPE) == UE_ISOCHRONOUS)
2123 ep->methods = &atmegadci_device_isoc_fs_methods;
2124 else
2125 ep->methods = &atmegadci_device_non_isoc_methods;
2126 }
2127}
2128
2129struct usb_bus_methods atmegadci_bus_methods =
2130{
2131 .endpoint_init = &atmegadci_ep_init,
2132 .xfer_setup = &atmegadci_xfer_setup,
2133 .xfer_unsetup = &atmegadci_xfer_unsetup,
2134 .get_hw_ep_profile = &atmegadci_get_hw_ep_profile,
2135 .set_stall = &atmegadci_set_stall,
2136 .clear_stall = &atmegadci_clear_stall,
2137 .roothub_exec = &atmegadci_roothub_exec,
2138 .xfer_poll = &atmegadci_do_poll,
2139};