Changeset 37c0822d in rtems


Ignore:
Timestamp:
Feb 19, 2010, 3:19:12 AM (10 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
cca94a2
Parents:
3c0654d
Message:

2010-02-19 Chris Johns <chrisj@…>

  • libchip/ide/ide_controller.c: Create the devices as block devices.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r3c0654d r37c0822d  
     12010-02-19      Chris Johns <chrisj@rtems.org>
     2
     3        * libchip/ide/ide_controller.c: Create the devices as block
     4        devices.
     5
    162010-01-18      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • c/src/libchip/ide/ide_controller.c

    r3c0654d r37c0822d  
    6262             IDE_Controller_Table[minor].probe(minor)) &&
    6363            (IDE_Controller_Table[minor].fns->ctrl_probe == NULL ||
    64              IDE_Controller_Table[minor].fns->ctrl_probe(minor)))
     64             IDE_Controller_Table[minor].fns->ctrl_probe(minor)))
    6565        {
    66             status = rtems_io_register_name(IDE_Controller_Table[minor].name,
    67                                             major, minor);
    68             if (status != RTEMS_SUCCESSFUL)
     66            dev_t  dev;
     67            dev = rtems_filesystem_make_dev_t( major, minor );
     68            if (mknod(IDE_Controller_Table[minor].name,
     69                      0777 | S_IFBLK, dev ) < 0)
    6970                rtems_fatal_error_occurred(status);
    70 
    7171            IDE_Controller_Table[minor].fns->ctrl_initialize(minor);
    72 
    7372            IDE_Controller_Table[minor].status = IDE_CTRL_INITIALIZED;
    7473        }
Note: See TracChangeset for help on using the changeset viewer.