Changeset 0d4b110 in mainline


Ignore:
Timestamp:
2013-09-29T18:50:27Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fd16b93
Parents:
11a3b5f
Message:

ohci: Sanitize includes.

Include what you use.

Location:
uspace/drv/bus/usb/ohci
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/endpoint_list.c

    r11a3b5f r0d4b110  
    3434 */
    3535
     36#include <assert.h>
    3637#include <errno.h>
     38#include <libarch/barrier.h>
     39
    3740#include <usb/debug.h>
    38 #include <libarch/barrier.h>
     41
     42#include "utils/malloc32.h"
    3943#include "endpoint_list.h"
    4044
  • uspace/drv/bus/usb/ohci/endpoint_list.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_ENDPOINT_LIST_H
    3636
     37#include <adt/list.h>
     38#include <assert.h>
    3739#include <fibril_synch.h>
     40#include <sys/types.h>
    3841
    3942#include "ohci_endpoint.h"
     
    6568        assert(instance);
    6669        free32(instance->list_head);
     70        instance->list_head = NULL;
    6771}
    6872
  • uspace/drv/bus/usb/ohci/hc.c

    r11a3b5f r0d4b110  
    3434 */
    3535
     36#include <assert.h>
     37#include <async.h>
    3638#include <errno.h>
     39#include <macros.h>
     40#include <mem.h>
     41#include <stdlib.h>
    3742#include <str_error.h>
    38 #include <adt/list.h>
    39 #include <libarch/ddi.h>
     43#include <sys/types.h>
    4044
    4145#include <usb/debug.h>
    4246#include <usb/usb.h>
    4347
    44 #include "macros.h"
     48#include "ohci_endpoint.h"
     49#include "ohci_batch.h"
     50#include "utils/malloc32.h"
     51
    4552#include "hc.h"
    46 #include "ohci_endpoint.h"
    4753
    4854#define OHCI_USED_INTERRUPTS \
  • uspace/drv/bus/usb/ohci/hc.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_HC_H
    3636
     37#include <adt/list.h>
     38#include <ddi.h>
     39#include <ddf/driver.h>
     40#include <device/hw_res_parsed.h>
    3741#include <fibril.h>
    3842#include <fibril_synch.h>
    39 #include <adt/list.h>
    40 #include <ddi.h>
    41 #include <ddf/interrupt.h>
     43#include <stdbool.h>
     44#include <sys/types.h>
    4245
    43 #include <usb/usb.h>
    4446#include <usb/host/hcd.h>
     47#include <usb/host/endpoint.h>
     48#include <usb/host/usb_transfer_batch.h>
    4549
    46 #include "ohci_batch.h"
    4750#include "ohci_regs.h"
    4851#include "ohci_rh.h"
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c

    r11a3b5f r0d4b110  
    3232 * @brief OHCI driver
    3333 */
     34
     35#include <assert.h>
     36#include <macros.h>
     37#include <mem.h>
     38
     39#include <usb/usb.h>
     40
     41#include "../utils/malloc32.h"
     42#include "mem_access.h"
     43
    3444#include "endpoint_descriptor.h"
    35 #include "macros.h"
    3645
    3746/** USB direction to OHCI values translation table. */
     
    4958 * @param td TD to put in the list.
    5059 *
    51  * If @param ep is NULL, dummy ED is initalized with only skip flag set.
     60 * If @param ep is NULL, dummy ED is initialized with only skip flag set.
    5261 */
    5362void ed_init(ed_t *instance, const endpoint_t *ep, const td_t *td)
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.h

    r11a3b5f r0d4b110  
    3636
    3737#include <assert.h>
    38 #include <stdint.h>
     38#include <stdbool.h>
     39#include <sys/types.h>
    3940
    4041#include <usb/host/endpoint.h>
  • uspace/drv/bus/usb/ohci/hw_struct/hcca.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_HW_STRUCT_HCCA_H
    3636
    37 #include <stdint.h>
    3837#include <malloc.h>
     38#include <sys/types.h>
    3939
    4040#include "mem_access.h"
  • uspace/drv/bus/usb/ohci/hw_struct/iso_transfer_descriptor.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H
    3636
    37 #include <stdint.h>
     37#include <sys/types.h>
    3838
    3939#include "completion_codes.h"
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c

    r11a3b5f r0d4b110  
    3232 * @brief OHCI driver
    3333 */
     34
     35#include <assert.h>
     36#include <mem.h>
     37
    3438#include <usb/usb.h>
    35 #include <mem.h>
     39
    3640#include "../utils/malloc32.h"
     41#include "completion_codes.h"
     42#include "mem_access.h"
    3743#include "transfer_descriptor.h"
    3844
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
    3636
     37#include <assert.h>
    3738#include <stdbool.h>
    3839#include <stdint.h>
  • uspace/drv/bus/usb/ohci/main.c

    r11a3b5f r0d4b110  
    3333 * Main routines of OHCI driver.
    3434 */
     35
     36#include <assert.h>
    3537#include <ddf/driver.h>
    3638#include <errno.h>
     39#include <io/log.h>
    3740#include <str_error.h>
    3841
  • uspace/drv/bus/usb/ohci/ohci.c

    r11a3b5f r0d4b110  
    3434 */
    3535
     36#include <assert.h>
    3637#include <errno.h>
     38#include <ddf/interrupt.h>
     39#include <device/hw_res_parsed.h>
     40#include <stdbool.h>
    3741#include <str_error.h>
    38 #include <ddf/interrupt.h>
     42#include <sys/types.h>
     43
    3944#include <usb/usb.h>
    4045#include <usb/debug.h>
    4146
    4247#include <usb/host/ddf_helpers.h>
     48#include <usb/host/usb_bus.h>
    4349
    4450#include "ohci.h"
     51#include "ohci_endpoint.h"
    4552#include "hc.h"
    4653
  • uspace/drv/bus/usb/ohci/ohci_batch.c

    r11a3b5f r0d4b110  
    3232 * @brief OHCI driver USB transaction structure
    3333 */
     34
     35#include <assert.h>
    3436#include <errno.h>
    35 #include <str_error.h>
    3637#include <macros.h>
     38#include <mem.h>
     39#include <stdbool.h>
    3740
    3841#include <usb/usb.h>
  • uspace/drv/bus/usb/ohci/ohci_batch.h

    r11a3b5f r0d4b110  
    3636
    3737#include <adt/list.h>
    38 #include <usbhc_iface.h>
    39 #include <usb/usb.h>
     38#include <assert.h>
     39#include <stdbool.h>
    4040#include <usb/host/usb_transfer_batch.h>
    4141
  • uspace/drv/bus/usb/ohci/ohci_endpoint.c

    r11a3b5f r0d4b110  
    3232 * @brief OHCI driver
    3333 */
     34
     35#include <assert.h>
     36#include <stdlib.h>
     37
    3438#include "utils/malloc32.h"
    3539#include "ohci_endpoint.h"
  • uspace/drv/bus/usb/ohci/ohci_rh.c

    r11a3b5f r0d4b110  
    3232 * @brief OHCI driver
    3333 */
     34
    3435#include <assert.h>
     36#include <errno.h>
     37#include <mem.h>
     38#include <sys/types.h>
     39
     40#include <usb/classes/hub.h>
    3541#include <usb/debug.h>
     42#include <usb/descriptor.h>
     43#include <usb/request.h>
     44#include <usb/usb.h>
     45
     46#include <usb/host/endpoint.h>
     47#include <usbvirt/device.h>
    3648
    3749#include "ohci_rh.h"
  • uspace/drv/bus/usb/ohci/ohci_rh.h

    r11a3b5f r0d4b110  
    3434#ifndef DRV_OHCI_OHCI_RH_H
    3535#define DRV_OHCI_OHCI_RH_H
     36
     37#include <assert.h>
     38#include <sys/types.h>
    3639
    3740#include <usb/usb.h>
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    r11a3b5f r0d4b110  
    3535#define DRV_OHCI_UTILS_MALLOC32_H
    3636
    37 #include <assert.h>
    38 #include <malloc.h>
    39 #include <unistd.h>
     37#include <as.h>
    4038#include <errno.h>
    41 #include <mem.h>
    42 #include <as.h>
     39#include <stdlib.h>
     40#include <sys/types.h>
    4341
    4442/* Generic TDs and EDs require 16byte alignment,
Note: See TracChangeset for help on using the changeset viewer.