source: rtems/bsps/powerpc/gen5200/ata/ata-instance.c @ fc79b26

Last change on this file since fc79b26 was fc79b26, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 23, 2018 at 10:53:28 AM

bsps: Move ATA drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 896 bytes
Line 
1/*
2 * Copyright (c) 2011-2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#include <bsp/ata.h>
16#include <bsp/fatal.h>
17
18#include <libchip/ata.h>
19
20#include <bsp.h>
21
22static ata_driver_dma_pio_single ata_driver_instance;
23
24rtems_status_code rtems_ata_initialize(
25  rtems_device_major_number major,
26  rtems_device_minor_number minor_arg,
27  void *arg
28)
29{
30  rtems_status_code sc = rtems_disk_io_initialize();
31
32  if (sc == RTEMS_SUCCESSFUL) {
33    bestcomm_glue_init();
34
35    ata_driver_dma_pio_single_create(&ata_driver_instance, "/dev/hda", TASK_PCI_TX);
36  } else {
37    bsp_fatal(MPC5200_FATAL_ATA_DISK_IO_INIT);
38  }
39
40  return sc;
41}
Note: See TracBrowser for help on using the repository browser.