Subversion Repositories shark

Rev

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
/*
23
 * Copyright (C) 1999,2000 Massimiliano Giorgi
24
 *
25
 * This program is free software; you can redistribute it and/or modify
26
 * it under the terms of the GNU General Public License as published by
27
 * the Free Software Foundation; either version 2 of the License, or
28
 * (at your option) any later version.
29
 *
30
 * This program is distributed in the hope that it will be useful,
31
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33
 * GNU General Public License for more details.
34
 *
35
 * You should have received a copy of the GNU General Public License
36
 * along with this program; if not, write to the Free Software
37
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
38
 *
39
 */
40
 
41
#ifndef __CLOOK_H
42
#define __CLOOK_H
43
 
44
#include "phdsk.h"
45
#include "glue.h"
1621 fabio 46
#include <arch/sys/cdefs.h>
2 pj 47
 
80 pj 48
__BEGIN_DECLS
49
 
2 pj 50
typedef struct TAGclook_queue_t {
51
  struct phdskinfo        *disk;
52
  /**/
53
  __b_fastmutex_t         mutex;
54
  int                     act;  
55
  struct request_prologue *queue[2];
56
  int counter;  
57
} clook_queue_t;
58
 
59
struct request_specific {
60
  void *next;
61
};
62
 
63
#define bqueue_t clook_queue_t
64
 
65
#define bqueue_init            clook_init
66
#define bqueue_numelements     clook_numelements 
67
#define bqueue_insertrequest   clook_insertrequest
68
#define bqueue_getrequest      clook_getrequest
69
#define bqueue_removerequest   clook_removerequest
70
 
80 pj 71
__END_DECLS
2 pj 72
#endif