OpenCores
URL https://opencores.org/ocsvn/modular_oscilloscope/modular_oscilloscope/trunk

Subversion Repositories modular_oscilloscope

[/] [modular_oscilloscope/] [trunk/] [sw/] [src/] [include/] [delay.h] - Blame information for rev 60

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 60 budinero
/*
2
 * libieee1284 - IEEE 1284 library
3
 * Copyright (C) 2001  Tim Waugh <twaugh@redhat.com>
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation; either version 2 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 */
19
 
20
#ifndef _DELAY_H_
21
#define _DELAY_H_
22
 
23
enum Delays {
24
  IO_POLL_DELAY = 0,
25
  TIMEVAL_SIGNAL_TIMEOUT = 1,
26
  TIMEVAL_STROBE_DELAY = 2,
27
};
28
 
29
static const long delay_table[] = {
30
        1, /* IO_POLL_DELAY */
31
        100000, /* TIMEVAL_SIGNAL_TIMEOUT */
32
        1 /* TIMEVAL_STROBE_DELAY */  };
33
 
34
#define lookup_delay(which, tv) ((tv)->tv_sec = 0, \
35
        (tv)->tv_usec = delay_table[which])
36
 
37
void udelay(unsigned long usec);
38
 
39
#endif /* _DELAY_H_ */
40
 
41
/*
42
 * Local Variables:
43
 * eval: (c-set-style "gnu")
44
 * End:
45
 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.