Changeset 215 for trunk/hal/x86_64/drivers/ioc_ata.c
- Timestamp:
- Jul 17, 2017, 1:41:13 PM (7 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/drivers/ioc_ata.c
r211 r215 1 1 /* 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 7 5 * 8 6 * This file is part of ALMOS-MKH. 9 7 * 10 * ALMOS-MKH .is free software; you can redistribute it and/or modify it8 * ALMOS-MKH is free software; you can redistribute it and/or modify it 11 9 * under the terms of the GNU General Public License as published by 12 10 * the Free Software Foundation; version 2.0 of the License. 13 11 * 14 * ALMOS-MKH .is distributed in the hope that it will be useful, but12 * ALMOS-MKH is distributed in the hope that it will be useful, but 15 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 16 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 18 16 * 19 17 * 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, 21 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 20 */ … … 24 22 #include <chdev.h> 25 23 #include <dev_ioc.h> 26 #include < soclib_bdv.h>24 #include <hal_drivers.h> 27 25 #include <thread.h> 28 26 #include <spinlock.h> … … 176 174 /* -------------------------------------------------------------------------- */ 177 175 178 void soclib_bdv_init(chdev_t *chdev) 179 { 180 chdev->cmd = &soclib_bdv_cmd; 181 chdev->isr = &soclib_bdv_isr; 176 static void ioc_ata_cmd(xptr_t th_xp); 177 static void ioc_ata_isr(chdev_t *chdev); 178 179 void ioc_ata_init(chdev_t *chdev) 180 { 181 chdev->cmd = &ioc_ata_cmd; 182 chdev->isr = &ioc_ata_isr; 182 183 ata_init(); 183 184 } 184 185 185 void __attribute__ ((noinline)) soclib_bdv_cmd( xptr_t th_xp)186 static void ioc_ata_cmd(xptr_t th_xp) 186 187 { 187 188 uint32_t cmd_type; // IOC_READ / IOC_WRITE / IOC_SYNC_READ … … 216 217 } 217 218 218 void __attribute__ ((noinline)) soclib_bdv_isr( chdev_t * chdev)219 static void ioc_ata_isr(chdev_t *chdev) 219 220 { 220 221 x86_panic((char *)__func__);
Note: See TracChangeset
for help on using the changeset viewer.