5
Last change
on this file since fc79b26 was
fc79b26,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/23/18 at 10:53:28
|
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
|
Rev | Line | |
---|
[57bcb88e] | 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 |
---|
[c499856] | 12 | * http://www.rtems.org/license/LICENSE. |
---|
[57bcb88e] | 13 | */ |
---|
| 14 | |
---|
| 15 | #include <bsp/ata.h> |
---|
[33cb8bf] | 16 | #include <bsp/fatal.h> |
---|
[57bcb88e] | 17 | |
---|
| 18 | #include <libchip/ata.h> |
---|
| 19 | |
---|
| 20 | #include <bsp.h> |
---|
| 21 | |
---|
| 22 | static ata_driver_dma_pio_single ata_driver_instance; |
---|
| 23 | |
---|
| 24 | rtems_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 { |
---|
[33cb8bf] | 37 | bsp_fatal(MPC5200_FATAL_ATA_DISK_IO_INIT); |
---|
[57bcb88e] | 38 | } |
---|
| 39 | |
---|
| 40 | return sc; |
---|
| 41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.