Subversion Repositories shark

Rev

Rev 80 | 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,2000 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
#ifndef __PSCAN_H
41
#define __PSCAN_H
42
 
43
#include "phdsk.h"
44
#include "glue.h"
1689 fabio 45
#include <arch/sys/cdefs.h>
2 pj 46
 
80 pj 47
__BEGIN_DECLS
48
 
2 pj 49
/* must be in sync with <modules/bd_pscan.h> */
50
#define NUMPRIORITY 4
51
 
52
typedef struct TAGpscan_queue_t {
53
  struct phdskinfo          *disk;
54
  /**/
55
  __b_fastmutex_t           mutex;
56
  int                       counter;
57
  int                       actprior;
58
  struct pscan_queues{
59
    int                     dir;  
60
    struct request_prologue *queue[2];
61
  } pri[NUMPRIORITY];
62
} pscan_queue_t;
63
 
64
struct request_specific {
65
  void *next;
66
};
67
 
68
#define bqueue_t pscan_queue_t
69
 
70
#define bqueue_init            pscan_init
71
#define bqueue_numelements     pscan_numelements 
72
#define bqueue_insertrequest   pscan_insertrequest
73
#define bqueue_getrequest      pscan_getrequest
74
#define bqueue_removerequest   pscan_removerequest
75
 
80 pj 76
__END_DECLS
2 pj 77
#endif