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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [include/] [atabug.h] - Blame information for rev 921

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 921 rherveille
/*
2
    atabug.h -- ATA debugging (C-header file)
3
    Copyright (C) 2002 Richard Herveille, rherveille@opencores.org
4
 
5
    This file is part of OpenRISC 1000 Reference Platform Monitor (ORPmon)
6
 
7
    This program is free software; you can redistribute it and/or modify
8
    it under the terms of the GNU General Public License as published by
9
    the Free Software Foundation; either version 2 of the License, or
10
    (at your option) any later version
11
 
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16
 
17
    You should have received a copy of the GNU General Public License
18
    along with this program; if not, write to the Free Software
19
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
*/
21
 
22
/*
23
 * Definitions for the Opencores ATA Controller Core
24
 */
25
 
26
#ifndef __OC_ATABUG_H
27
#define __OC_ATABUG_H
28
 
29
 
30
#define ATA_DEBUG
31
 
32
 
33
#define MAX_ATA_COMMANDS  25
34
 
35
/* ----------------------------                                       */
36
/* ----- Prototypes       -----                                       */
37
/* ----------------------------                                       */
38
void module_ata_init (void);
39
int atabug(int argc, char **argv);
40
int atabug_exit(int argc, char **argv);
41
int atabug_help(int argc, char **argv);
42
void register_ata_command (const char *name, const char *params, const char *help, int (*func)(int argc, char *argv[]));
43
int ata_mon_command(void);
44
int execute_ata_command(char *pstr, int argc, char **argv);
45
 
46
int ata_close_cmd(int arc, char **argv);
47
int ata_dump_device_regs_cmd(int argc, char **argv);
48
int ata_dump_host_regs_cmd(int argc, char **argv);
49
int ata_enable_cmd(int argc, char **argv);
50
int ata_exec_cmd_cmd(int argc, char **argv);
51
int ata_identify_device_cmd(int argc, char **argv);
52
int ata_open_cmd(int argc, char **argv);
53
int ata_read_sectors_cmd(int argc, char **argv);
54
int ata_read_dosboot_cmd(int argc, char **argv);
55
int ata_reset_cmd(int argc, char **argv);
56
int ata_select_device_cmd(int argc, char **argv);
57
int ata_set_piomode_cmd(int argc, char **argv);
58
 
59
unsigned char atabug_dump_data(unsigned char *buffer, int cnt);
60
 
61
 
62
#endif

powered by: WebSVN 2.1.0

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