source: rtems/c/src/lib/libbsp/powerpc/gen5200/ide/ata-instance.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • 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.