/[pcsx2_0.9.7]/trunk/pcsx2/sio_internal.h
ViewVC logotype

Contents of /trunk/pcsx2/sio_internal.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 1 month ago) by william
File MIME type: text/plain
File size: 1776 byte(s)
committing r3113 initial commit again...
1 /* PCSX2 - PS2 Emulator for PCs
2 * Copyright (C) 2002-2009 PCSX2 Dev Team
3 *
4 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5 * of the GNU Lesser General Public License as published by the Free Software Found-
6 * ation, either version 3 of the License, or (at your option) any later version.
7 *
8 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with PCSX2.
13 * If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #pragma once
17
18 // sio_internal.h -- contains defines and structs used by sio and sio2, which
19 // are of little or no use to the rest of the world.
20
21 // Status Flags
22 static const int
23 TX_RDY = 0x0001,
24 RX_RDY = 0x0002,
25 TX_EMPTY = 0x0004,
26 PARITY_ERR = 0x0008,
27 RX_OVERRUN = 0x0010,
28 FRAMING_ERR = 0x0020,
29 SYNC_DETECT = 0x0040,
30 DSR = 0x0080,
31 CTS = 0x0100,
32 IRQ = 0x0200;
33
34 // Control Flags
35 static const int
36 TX_PERM = 0x0001,
37 DTR = 0x0002,
38 RX_PERM = 0x0004,
39 BREAK = 0x0008,
40 RESET_ERR = 0x0010,
41 RTS = 0x0020,
42 SIO_RESET = 0x0040;
43
44 #ifdef _MSC_VER
45 #pragma pack(1)
46 #endif
47 struct mc_command_0x26_tag{
48 u8 field_151; //+02 flags
49 u16 sectorSize; //+03 Size of each sector(page), in bytes.
50 u16 eraseBlocks; //+05 Number of sectors in the erase block
51 u32 mcdSizeInSectors; //+07 card size in sectors (pages).
52 u8 mc_xor; //+0b XOR Checksum of the superblock? (minus format ident and version?)
53 u8 Z; //+0c terminator? Appears to be overwritten/unused.
54 #ifdef _MSC_VER
55 };
56 #pragma pack()
57 #else
58 } __attribute__((packed));
59 #endif

  ViewVC Help
Powered by ViewVC 1.1.22