source: trunk/hal/x86_64/drivers/soclib_hba.c @ 211

Last change on this file since 211 was 211, checked in by max@…, 7 years ago

hide the fields

File size: 1.4 KB
Line 
1/*
2 * soclib_hba.c - soclib AHCI block device driver implementation.
3 *
4 * Author     Alain Greiner (2016)
5 *
6 * Copyright (c) UPMC Sorbonne Universites
7 *
8 * This file is part of ALMOS-MKH..
9 *
10 * ALMOS-MKH. is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; version 2.0 of the License.
13 *
14 * ALMOS-MKH. is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * General Public License for more details.
18 *
19 * 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,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#include <printk.h>
25#include <hal_special.h>
26#include <chdev.h>
27#include <dev_ioc.h>
28#include <soclib_hba.h>
29#include <spinlock.h>
30#include <thread.h>
31
32void soclib_hba_init( chdev_t * chdev )
33{
34    // set driver specific fields
35    chdev->cmd = &soclib_hba_cmd;
36    chdev->isr = &soclib_hba_isr;
37
38        x86_panic((const char *)__func__);
39}
40
41void __attribute__ ((noinline)) soclib_hba_cmd( xptr_t th_xp )
42{
43        x86_panic((const char *)__func__);
44}
45
46void __attribute__ ((noinline)) soclib_hba_isr( chdev_t * chdev )
47{
48        x86_panic((const char *)__func__);
49}
50
Note: See TracBrowser for help on using the repository browser.