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

Last change on this file since 1836c6a was 1836c6a, checked in by Sebastian Huber <sebastian.huber@…>, on Aug 4, 2018 at 8:45:19 AM

bsp/gen5200: Avoid deprecated routine

Update #3358.

  • Property mode set to 100644
File size: 914 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 <rtems/bdbuf.h>
21
22#include <bsp.h>
23
24static ata_driver_dma_pio_single ata_driver_instance;
25
26rtems_status_code rtems_ata_initialize(
27  rtems_device_major_number major,
28  rtems_device_minor_number minor_arg,
29  void *arg
30)
31{
32  rtems_status_code sc = rtems_bdbuf_init();
33
34  if (sc == RTEMS_SUCCESSFUL) {
35    bestcomm_glue_init();
36
37    ata_driver_dma_pio_single_create(&ata_driver_instance, "/dev/hda", TASK_PCI_TX);
38  } else {
39    bsp_fatal(MPC5200_FATAL_ATA_DISK_IO_INIT);
40  }
41
42  return sc;
43}
Note: See TracBrowser for help on using the repository browser.