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

Last change on this file since e560ee85 was e560ee85, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:55

bsps/powerpc/: Scripted embedded brains header file clean up

Updates #4625.

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