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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [include/] [atabug.h] - Blame information for rev 743

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

Line No. Rev Author Line
1 2 marcus.erl
/*
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
struct partition {
36
  char  boot;
37
  char  start_head;
38
  short start_cylinder;
39
  char  start_sector;
40
  char  system;
41
  char  end_head;
42
  short end_cylinder;
43
  char  end_sector;
44
  int   start;
45
  int   sectors;
46
};
47
 
48
/* ----------------------------                                       */
49
/* ----- Prototypes       -----                                       */
50
/* ----------------------------                                       */
51
void module_ata_init (void);
52
int atabug(int argc, char **argv);
53
int atabug_exit(int argc, char **argv);
54
int atabug_help(int argc, char **argv);
55
void register_ata_command (const char *name, const char *params, const char *help, int (*func)(int argc, char *argv[]));
56
int ata_mon_command(void);
57
int execute_ata_command(char *pstr, int argc, char **argv);
58
 
59
int ata_close_cmd(int arc, char **argv);
60
int ata_dump_device_regs_cmd(int argc, char **argv);
61
int ata_dump_host_regs_cmd(int argc, char **argv);
62
int ata_dump_dataport_cmd(int argc, char **argv);
63
int ata_enable_cmd(int argc, char **argv);
64
int ata_exec_cmd_cmd(int argc, char **argv);
65
int ata_identify_device_cmd(int argc, char **argv);
66
int ata_open_cmd(int argc, char **argv);
67
int ata_read_sectors_cmd(int argc, char **argv);
68
int ata_read_mbr_cmd(int argc, char **argv);
69
int ata_read_dosboot_cmd(int argc, char **argv);
70
int ata_reset_cmd(int argc, char **argv);
71
int ata_select_device_cmd(int argc, char **argv);
72
int ata_set_piomode_cmd(int argc, char **argv);
73
 
74
unsigned char atabug_dump_data(unsigned char *buffer, int cnt);
75
 
76
#endif

powered by: WebSVN 2.1.0

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