at91dci_atmelarm.c (240314) | at91dci_atmelarm.c (249232) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/at91dci_atmelarm.c 240314 2012-09-10 13:50:34Z hselasky $"); | 2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/at91dci_atmelarm.c 249232 2013-04-07 13:03:57Z hselasky $"); |
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 --- 75 unchanged lines hidden (view full) --- 86 struct callout sc_vbus; 87}; 88 89static void 90at91_vbus_poll(struct at91_udp_softc *sc) 91{ 92 uint8_t vbus_val; 93 | 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 --- 75 unchanged lines hidden (view full) --- 86 struct callout sc_vbus; 87}; 88 89static void 90at91_vbus_poll(struct at91_udp_softc *sc) 91{ 92 uint8_t vbus_val; 93 |
94 vbus_val = at91_pio_gpio_get(VBUS_BASE, VBUS_MASK); | 94 vbus_val = at91_pio_gpio_get(VBUS_BASE, VBUS_MASK) != 0; |
95 at91dci_vbus_interrupt(&sc->sc_dci, vbus_val); 96 97 callout_reset(&sc->sc_vbus, hz, (void *)&at91_vbus_poll, sc); 98} 99 100static void 101at91_udp_clocks_on(void *arg) 102{ --- 225 unchanged lines hidden --- | 95 at91dci_vbus_interrupt(&sc->sc_dci, vbus_val); 96 97 callout_reset(&sc->sc_vbus, hz, (void *)&at91_vbus_poll, sc); 98} 99 100static void 101at91_udp_clocks_on(void *arg) 102{ --- 225 unchanged lines hidden --- |