| 1 | /* |
|---|
| 2 | * devfs.h - export devfs memory and context related operations |
|---|
| 3 | * |
|---|
| 4 | * Author Ghassan Almaless (2008,2009,2010,2011,2012) |
|---|
| 5 | * Mohamed Lamine Karaoui (2015) |
|---|
| 6 | * Alain Greiner (2017) |
|---|
| 7 | * |
|---|
| 8 | * Copyright (c) Sorbonne Universites |
|---|
| 9 | * |
|---|
| 10 | * This file is part of ALMOS-MKH. |
|---|
| 11 | * |
|---|
| 12 | * ALMOS-MKH is free software; you can redistribute it and/or modify it |
|---|
| 13 | * under the terms of the GNU General Public License as published by |
|---|
| 14 | * the Free Software Foundation; version 2.0 of the License. |
|---|
| 15 | * |
|---|
| 16 | * ALMOS-MKH is distributed in the hope that it will be useful, but |
|---|
| 17 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 19 | * General Public License for more details. |
|---|
| 20 | * |
|---|
| 21 | * You should have received a copy of the GNU General Public License |
|---|
| 22 | * along with ALMOS-MKH; if not, write to the Free Software Foundation, |
|---|
| 23 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 24 | */ |
|---|
| 25 | |
|---|
| 26 | #ifndef _DEVFS_H_ |
|---|
| 27 | #define _DEVFS_H_ |
|---|
| 28 | |
|---|
| 29 | #include <metafs.h> |
|---|
| 30 | #include <device.h> |
|---|
| 31 | |
|---|
| 32 | /****************************************************************************************** |
|---|
| 33 | * This structure TODO |
|---|
| 34 | *****************************************************************************************/ |
|---|
| 35 | |
|---|
| 36 | typedef struct devfs_context_s |
|---|
| 37 | { |
|---|
| 38 | struct metafs_s * db; |
|---|
| 39 | } |
|---|
| 40 | devfs_context_t; |
|---|
| 41 | |
|---|
| 42 | /****************************************************************************************** |
|---|
| 43 | * This function TODO |
|---|
| 44 | *****************************************************************************************/ |
|---|
| 45 | void devfs_root_init(); |
|---|
| 46 | |
|---|
| 47 | /****************************************************************************************** |
|---|
| 48 | * This function TODO |
|---|
| 49 | *****************************************************************************************/ |
|---|
| 50 | void devfs_register( device_t * dev ); |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | #endif /* _DEVFS_H_ */ |
|---|