at91dci_atmelarm.c (186439) | at91dci_atmelarm.c (187170) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/at91dci_atmelarm.c 186439 2008-12-23 17:36:25Z thompsa $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb2/controller/at91dci_atmelarm.c 187170 2009-01-13 19:02:40Z thompsa $"); |
3 4/*- 5 * Copyright (c) 2007-2008 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 --- 129 unchanged lines hidden (view full) --- 140 141 sc->sc_dci.sc_clocks_on = &at91_udp_clocks_on; 142 sc->sc_dci.sc_clocks_off = &at91_udp_clocks_off; 143 sc->sc_dci.sc_clocks_arg = sc; 144 sc->sc_dci.sc_pull_up = &at91_udp_pull_up; 145 sc->sc_dci.sc_pull_down = &at91_udp_pull_down; 146 sc->sc_dci.sc_pull_arg = sc; 147 | 3 4/*- 5 * Copyright (c) 2007-2008 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 --- 129 unchanged lines hidden (view full) --- 140 141 sc->sc_dci.sc_clocks_on = &at91_udp_clocks_on; 142 sc->sc_dci.sc_clocks_off = &at91_udp_clocks_off; 143 sc->sc_dci.sc_clocks_arg = sc; 144 sc->sc_dci.sc_pull_up = &at91_udp_pull_up; 145 sc->sc_dci.sc_pull_down = &at91_udp_pull_down; 146 sc->sc_dci.sc_pull_arg = sc; 147 |
148 /* get all DMA memory */ 149 | 148 /* initialise some bus fields */ |
150 sc->sc_dci.sc_bus.parent = dev; | 149 sc->sc_dci.sc_bus.parent = dev; |
150 sc->sc_dci.sc_bus.devices = sc->sc_dci.sc_devices; 151 sc->sc_dci.sc_bus.devices_max = AT91_MAX_DEVICES; 152 153 /* get all DMA memory */ |
|
151 if (usb2_bus_mem_alloc_all(&sc->sc_dci.sc_bus, 152 USB_GET_DMA_TAG(dev), NULL)) { 153 return (ENOMEM); 154 } 155 /* 156 * configure VBUS input pin, enable deglitch and enable 157 * interrupt : 158 */ --- 199 unchanged lines hidden --- | 154 if (usb2_bus_mem_alloc_all(&sc->sc_dci.sc_bus, 155 USB_GET_DMA_TAG(dev), NULL)) { 156 return (ENOMEM); 157 } 158 /* 159 * configure VBUS input pin, enable deglitch and enable 160 * interrupt : 161 */ --- 199 unchanged lines hidden --- |