summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-12-10 09:26:33 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-12-10 09:26:33 +0000
commit73764093fee1692ee5275ab88cd207f9cc2df23f (patch)
tree848483a555e860bd74a47252c86a877081e643ef /c/src/lib/libbsp/shared
parent2004-12-10 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-73764093fee1692ee5275ab88cd207f9cc2df23f.tar.bz2
2004-12-10 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 704/bsps. * ide_ctrl.c: Removed (obsolete).
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog5
-rw-r--r--c/src/lib/libbsp/shared/ide_ctrl.c179
2 files changed, 5 insertions, 179 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index cde7877794..3439478ace 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-10 Ralf Corsepius <ralf.corsepius@rtems.org>
+
+ PR 704/bsps.
+ * ide_ctrl.c: Removed (obsolete).
+
2004-11-20 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 703/filesystem
diff --git a/c/src/lib/libbsp/shared/ide_ctrl.c b/c/src/lib/libbsp/shared/ide_ctrl.c
deleted file mode 100644
index 3111b9edec..0000000000
--- a/c/src/lib/libbsp/shared/ide_ctrl.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * ide_controller.c
- *
- * This is generic rtems driver for IDE controllers.
- *
- * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
- * Authors: Alexandra Kossovsky <sasha@oktet.ru>
- * Eugeny S. Mints <Eugeny.Mints@oktet.ru>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- *
- */
-#include <rtems/chain.h>
-#include <assert.h>
-#include <rtems/blkdev.h>
-
-#include <libchip/ide_ctrl_cfg.h>
-#include <libchip/ide_ctrl_io.h>
-
-/*
- * ide_controller_initialize --
- * Initializes all configured IDE controllers. Controllers configuration
- * table is provided by BSP
- *
- * PARAMETERS:
- * major - device major number
- * minor_arg - device minor number
- * args - arguments
- *
- * RETURNS:
- * RTEMS_SUCCESSFUL on success, or error code if
- * error occured
- */
-rtems_device_driver
-ide_controller_initialize(rtems_device_major_number major,
- rtems_device_minor_number minor_arg,
- void *args)
-{
- unsigned long minor;
- rtems_status_code status;
-
- /* FIXME: may be it should be done on compilation phase */
- if (IDE_Controller_Count > IDE_CTRL_MAX_MINOR_NUMBER)
- rtems_fatal_error_occurred(RTEMS_TOO_MANY);
-
- for (minor=0; minor < IDE_Controller_Count; minor++)
- {
- IDE_Controller_Table[minor].status = IDE_CTRL_NON_INITIALIZED;
-
- if ((IDE_Controller_Table[minor].probe != NULL &&
- IDE_Controller_Table[minor].probe(minor)) ||
- IDE_Controller_Table[minor].fns->ctrl_probe(minor))
- {
- status = rtems_io_register_name(IDE_Controller_Table[minor].name,
- major, minor);
- if (status != RTEMS_SUCCESSFUL)
- rtems_fatal_error_occurred(status);
-
- IDE_Controller_Table[minor].fns->ctrl_initialize(minor);
-
- IDE_Controller_Table[minor].status = IDE_CTRL_INITIALIZED;
- }
- }
- return RTEMS_SUCCESSFUL;
-}
-
-/*
- * ide_controller_read_data_block --
- * Read data block via controller's data register
- *
- * PARAMETERS:
- * minor - minor number of controller
- * block_size - number of bytes to read
- * bufs - set of buffers to store data
- * cbuf - number of current buffer from the set
- * pos - position inside current buffer 'cbuf'
- *
- * RETURNS:
- * NONE
- */
-void
-ide_controller_read_data_block(rtems_device_minor_number minor,
- uint16_t block_size,
- blkdev_sg_buffer *bufs,
- uint32_t *cbuf,
- uint32_t *pos)
-{
- IDE_Controller_Table[minor].fns->ctrl_read_block(minor, block_size, bufs,
- cbuf, pos);
-}
-
-/*
- * ide_controller_write_data_block --
- * Write data block via controller's data register
- *
- * PARAMETERS:
- * minor - minor number of controller
- * block_size - number of bytes to write
- * bufs - set of buffers which store data
- * cbuf - number of current buffer from the set
- * pos - position inside current buffer 'cbuf'
- *
- * RETURNS:
- * NONE
- */
-void
-ide_controller_write_data_block(rtems_device_minor_number minor,
- uint16_t block_size,
- blkdev_sg_buffer *bufs,
- uint32_t *cbuf,
- uint32_t *pos)
-
-{
- IDE_Controller_Table[minor].fns->ctrl_write_block(minor, block_size, bufs,
- cbuf, pos);
-}
-
-/*
- * ide_controller_read_register --
- * Read controller's register
- *
- * PARAMETERS:
- * minor - minor number of controller
- * reg - register to read
- * value - placeholder for result
- *
- * RETURNS
- * NONE
- */
-void
-ide_controller_read_register(rtems_device_minor_number minor,
- int reg,
- uint16_t *value)
-{
- IDE_Controller_Table[minor].fns->ctrl_reg_read(minor, reg, value);
-}
-
-/*
- * ide_controller_write_register --
- * Write controller's register
- *
- * PARAMETERS:
- * minor - minor number of controller
- * reg - register to write
- * value - value to write
- *
- * RETURNS:
- * NONE
- */
-void
-ide_controller_write_register(rtems_device_minor_number minor, int reg,
- uint16_t value)
-{
- IDE_Controller_Table[minor].fns->ctrl_reg_write(minor, reg, value);
-}
-
-/*
- * ide_controller_config_io_speed --
- * Set controller's speed of IO operations
- *
- * PARAMETERS:
- * minor - minor number of controller
- * modes_available - speeds available
- *
- * RETURNS:
- * RTEMS_SUCCESSFUL on success, or error code if
- * error occured
- */
-rtems_status_code
-ide_controller_config_io_speed(int minor, uint16_t modes_available)
-{
- return IDE_Controller_Table[minor].fns->ctrl_config_io_speed(
- minor,
- modes_available);
-}