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

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk/stdalone/dskchk2
    from Rev 245 to Rev 259
    Reverse comparison

Rev 245 → Rev 259

/dskchk2/idedsk.h
19,12 → 19,12
#define DISK_CAP (DISK_BASE + 3) /* disk capacity register */
#define DISK_BUFFER ((unsigned *) 0xF0480000) /* address of disk buffer */
 
#define DISK_CTRL_STRT 0x01 /* a 1 written here starts the disk command */
#define DISK_CTRL_IEN 0x02 /* enable disk interrupt */
#define DISK_CTRL_WRT 0x04 /* command type: 0 = read, 1 = write */
#define DISK_CTRL_ERR 0x08 /* 0 = ok, 1 = error; valid when DONE = 1 */
#define DISK_CTRL_DONE 0x10 /* 1 = disk has finished the command */
#define DISK_CTRL_READY 0x20 /* 1 = capacity valid, disk accepts command */
#define DISK_CTRL_STRT 0x01U /* a 1 written here starts the disk command */
#define DISK_CTRL_IEN 0x02U /* enable disk interrupt */
#define DISK_CTRL_WRT 0x04U /* command type: 0 = read, 1 = write */
#define DISK_CTRL_ERR 0x08U /* 0 = ok, 1 = error; valid when DONE = 1 */
#define DISK_CTRL_DONE 0x10U /* 1 = disk has finished the command */
#define DISK_CTRL_READY 0x20U /* 1 = capacity valid, disk accepts command */
 
#define DISK_IRQ 8 /* disk interrupt number */
 
/Makefile
22,13 → 22,13
./chkimg $(DISK_IMG) $(NUM_CHECKS)
 
chkimg: chkimg.c
gcc -m32 -Wall -o chkimg chkimg.c
gcc -Wall -o chkimg chkimg.c
 
$(DISK_IMG): genimg
./genimg $(DISK_IMG)
 
genimg: genimg.c
gcc -m32 -Wall -o genimg genimg.c
gcc -Wall -o genimg genimg.c
 
clean:
$(MAKE) -C dskchk2 clean

powered by: WebSVN 2.1.0

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