Ignore:
Timestamp:
Jul 17, 2017, 1:41:13 PM (7 years ago)
Author:
max@…
Message:

rename the ATA driver

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/drivers/ioc_ata.c

    r211 r215  
    11/*
    2  * soclib_bdv.c - soclib simple block device driver implementation.
    3  *
    4  * Author     Alain Greiner (2016)
    5  *
    6  * Copyright (c) UPMC Sorbonne Universites
     2 * ioc_ata.c - ATA driver implementation
     3 *
     4 * Copyright (c) 2017 Maxime Villard
    75 *
    86 * This file is part of ALMOS-MKH.
    97 *
    10  * ALMOS-MKH.is free software; you can redistribute it and/or modify it
     8 * ALMOS-MKH is free software; you can redistribute it and/or modify it
    119 * under the terms of the GNU General Public License as published by
    1210 * the Free Software Foundation; version 2.0 of the License.
    1311 *
    14  * ALMOS-MKH.is distributed in the hope that it will be useful, but
     12 * ALMOS-MKH is distributed in the hope that it will be useful, but
    1513 * WITHOUT ANY WARRANTY; without even the implied warranty of
    1614 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     
    1816 *
    1917 * You should have received a copy of the GNU General Public License
    20  * along with ALMOS-MKH.; if not, write to the Free Software Foundation,
     18 * along with ALMOS-MKH; if not, write to the Free Software Foundation,
    2119 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    2220 */
     
    2422#include <chdev.h>
    2523#include <dev_ioc.h>
    26 #include <soclib_bdv.h>
     24#include <hal_drivers.h>
    2725#include <thread.h>
    2826#include <spinlock.h>
     
    176174/* -------------------------------------------------------------------------- */
    177175
    178 void soclib_bdv_init(chdev_t *chdev)
    179 {
    180         chdev->cmd = &soclib_bdv_cmd;
    181         chdev->isr = &soclib_bdv_isr;
     176static void ioc_ata_cmd(xptr_t th_xp);
     177static void ioc_ata_isr(chdev_t *chdev);
     178
     179void ioc_ata_init(chdev_t *chdev)
     180{
     181        chdev->cmd = &ioc_ata_cmd;
     182        chdev->isr = &ioc_ata_isr;
    182183        ata_init();
    183184}
    184185
    185 void __attribute__ ((noinline)) soclib_bdv_cmd( xptr_t th_xp )
     186static void ioc_ata_cmd(xptr_t th_xp)
    186187{
    187188        uint32_t   cmd_type;     // IOC_READ / IOC_WRITE / IOC_SYNC_READ
     
    216217}
    217218
    218 void __attribute__ ((noinline)) soclib_bdv_isr( chdev_t * chdev )
     219static void ioc_ata_isr(chdev_t *chdev)
    219220{
    220221        x86_panic((char *)__func__);
Note: See TracChangeset for help on using the changeset viewer.