Rev 1618 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | /* |
||
22 | * Copyright (C) 1999 Massimiliano Giorgi |
||
23 | * |
||
24 | * This program is free software; you can redistribute it and/or modify |
||
25 | * it under the terms of the GNU General Public License as published by |
||
26 | * the Free Software Foundation; either version 2 of the License, or |
||
27 | * (at your option) any later version. |
||
28 | * |
||
29 | * This program is distributed in the hope that it will be useful, |
||
30 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
32 | * GNU General Public License for more details. |
||
33 | * |
||
34 | * You should have received a copy of the GNU General Public License |
||
35 | * along with this program; if not, write to the Free Software |
||
36 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
37 | * |
||
38 | */ |
||
39 | |||
40 | /* |
||
80 | pj | 41 | * CVS : $Id: phdsk.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
2 | pj | 42 | * |
43 | * File: $File$ |
||
80 | pj | 44 | * Revision: $Revision: 1.2 $ |
45 | * Last update: $Date: 2003-03-13 13:43:13 $ |
||
2 | pj | 46 | */ |
47 | |||
48 | #ifndef __PHDSK_H__ |
||
49 | #define __PHDSK_H__ |
||
50 | |||
51 | #include "glue.h" |
||
1621 | fabio | 52 | #include <arch/sys/cdefs.h> |
2 | pj | 53 | |
80 | pj | 54 | __BEGIN_DECLS |
55 | |||
2 | pj | 56 | #define MAXPHDSK 4 |
57 | |||
58 | #define MAXPHDSKNAME 16 |
||
59 | |||
60 | /*-----------*/ |
||
61 | |||
62 | struct dskgeometry { |
||
63 | __uint16_t cyls; /* logical cylinders */ |
||
64 | __uint16_t heads; /* logical heads */ |
||
65 | __uint16_t sectors; /* logical sectors per track */ |
||
66 | }; |
||
67 | |||
68 | struct phdskinfo { |
||
69 | |||
70 | #ifdef _PARANOIA |
||
71 | __uint32_t magic; |
||
72 | #endif |
||
73 | |||
74 | char pd_name[MAXPHDSKNAME]; |
||
75 | __dev_t pd_device; |
||
76 | |||
77 | #ifdef IDE_BLOCK_DEVICE |
||
78 | __uint32_t pd_ide_check_geom:1; |
||
79 | #endif |
||
80 | |||
81 | __blkcnt_t pd_size; |
||
82 | int pd_sectsize; |
||
83 | |||
84 | struct dskgeometry pd_phgeom; |
||
85 | struct dskgeometry pd_logeom; |
||
86 | }; |
||
87 | |||
88 | void phdsk_init(void); |
||
89 | struct phdskinfo *phdsk_register(struct phdskinfo *disk); |
||
90 | |||
80 | pj | 91 | __END_DECLS |
2 | pj | 92 | #endif |