Skip to content

Commit

Permalink
TOS060 2.02 Beta 11 & TOS Drivers 1.02 Beta 11 (unofficial)
Browse files Browse the repository at this point in the history
Only flash.tos is updated.

*.bin and *.hex not updated.
  • Loading branch information
Didier Méquignon authored and mikrosk committed Jun 5, 2023
1 parent 0447fc0 commit 1abbaff
Show file tree
Hide file tree
Showing 245 changed files with 51,554 additions and 22,287 deletions.
342 changes: 0 additions & 342 deletions flash.tos/LICENSE

This file was deleted.

684 changes: 385 additions & 299 deletions flash.tos/Makefile

Large diffs are not rendered by default.

95 changes: 0 additions & 95 deletions flash.tos/binhex.c

This file was deleted.

59 changes: 0 additions & 59 deletions flash.tos/compress.c

This file was deleted.

31 changes: 27 additions & 4 deletions flash.tos/doc/coldfire.readme
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,29 @@ typedef struct socket_cookie

'STiK' cookie is also implemented with GlueSTiK.

DMACF V4e cookie 'DMAC' (for external drivers using DMA like Ethernet):
-----------------------------------------------------------------------
typedef struct dma_cookie
{
long version; /* 0x0101 for example */
long magic; /* 'DMAC' */
int (*dma_set_initiator)(int initiator);
unsigned long (*dma_get_initiator)(int requestor);
void (*dma_free_initiator)(int requestor);
int (*dma_set_channel)(int requestor, void (*handler)(void));
int (*dma_get_channel)(int requestor);
void (*dma_free_channel)(int requestor);
void (*dma_clear_channel)(int channel);
int (*MCD_startDma)(int channel, s8 *srcAddr, s16 srcIncr, s8 *destAddr, s16 destIncr, u32 dmaSize, u32 xferSize, u32 initiator, int priority, u32 flags, u32 funcDesc);
int (*MCD_dmaStatus)(int channel);
int (*MCD_XferProgrQuery)(int channel, MCD_XferProg *progRep);
int (*MCD_killDma)(int channel);
int (*MCD_continDma)(int channel);
int (*MCD_pauseDma)(int channel);
int (*MCD_resumeDma)(int channel);
int (*MCD_csumQuery)(int channel, u32 *csum);
} DMACF_COOKIE;


XBIOS notes
===========
Expand Down Expand Up @@ -424,9 +447,9 @@ FIREBEE Notes (M5484LITE/M5485EVB comparison)
* B7: (1) SW6 DOWN, (0) SW6 UP
* B6: (1) SW5 DOWN, (0) SW5 UP
* B0: (1) rescue TOS started from 0xE0000000 (replace BAS or dBUG)
SW6 up is the normal usage
SW6 down allows to TOS to start FTP (build option), HTTP, TFTP servers and create a Ram-Disk
actually in B (this feature is also possible with dBUG at 0xE0000000).
SW6 up is the normal usage (without Ethernet features and USB)
SW6 down allows the TOS to start FTP (build option), HTTP, TFTP servers and create a Ram-Disk
actually in B (this feature is also possible with dBUG at 0xE0000000) install USB drivers.
SW5 up is the normal usage for start the TOS at 0xE0400000 (same usage inside BAS or dBUG at
0xE0000000) and a boot menu has 2 choices TOS or EMUTOS (TOS by default).
SW5 down is the rescue mode, TOS at 0xE0000000 continue to run and a boot menu displays 3 choices:
Expand Down Expand Up @@ -608,7 +631,7 @@ Coldfire notes
FFFFE000 - FFFFFFFF : SRAM 8192 bytes for fix bus errors with emulated instructions remapped with MMU from 80007000

- FIREBEE MMU Mapping:
00000000 - 00CF0000 : STRAM 13 MB (cache in writethrough)
00000000 - 00CFFFFF : STRAM 13 MB (cache in writethrough)
00D00000 - 00DFFFFF : Mirror FPGA 1MB VIDEO RAM (cache in writethrough)
00E00000 - 00EFFFFF : TOS404 1 MB (write protected)
00F00000 - 00F01FFF : Mirror FPGA - ATARI IDE (8K)
Expand Down
43 changes: 41 additions & 2 deletions flash.tos/doc/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ detected ??? (boot2.S)

2011-07-17 2.01
---------------
- Try to fix CT60 flash boot problems by reading until 4 x times the TOS in
- Try to fix CT60 flash boot problems by reading until 4 times the TOS in
flash if the CRC is bad before apply the patches in SDRAM (boot2.S).
- If the Supervidel is found, the TOS use the default Bconout routine
who use the blitter (conout.S).
Expand All @@ -323,7 +323,7 @@ in STRAM and mutiple retry/verifications until 5 times (ide_scsi.S).
- On the Fireebee target, rewrited some parts of the TOS in native
code like the PSG sound VBL interrupt routine and IKBD interrupt
routine.
- On the Fireebee target, enabled Bconmap (xbios.S) with device 6 is MFP,
- On the Firebee target, enabled Bconmap (xbios.S) with device 6 is MFP,
7 is PSC0 who replace the SCC (default like a FALCON), this is the
baud table for Rsconf (MFP and PSC0):
Index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Expand Down Expand Up @@ -358,4 +358,43 @@ programs (cf68klib.S):
* fabs/fadd/fcmp/fdiv/fint/fintrz/fmove/fmul/fneg/fsqrt/fsub/ftst #.
* cinva/cpushl/cpusha.

2012-06-23 2.02
---------------
- On M5484LITE/FIREBEE enabled XLB PCI interrupt (boot.S).
- Inside the CF68KLIB, removed fix_predecrement/fix_postincrement when
address error arrives with MOVE.B/W/L (An)+,<ea> and MOVE.B/W/L
-(An),<ea> with invalid addessing modes (cf68klib.S).
- On the Firebee target (boot.S), added SCSI/IDE device unselection using
CT60_BOOT_ORDER parameter unused bits (B27-B24 for IDE and B23-B16 for
SCSI).
- On the Firebee target added fix for Device Errata 26, now USB MASS
STORAGE works fine (PCI <=> Flexbus).
- Added bus support inside the PCI BIOS (pci_bios.S), limits now are:
* 4 bus.
* 32 devices by bus.
* 4 functions by devices.
- Fixed invalid IDE call possible (wrong device) inside boot routine
(boot2.S) after SCSI drives detection (for example with ALT key I got
crash). This bug is very old, but since the CTPCI, the IDE routine is
ready for a 2nd port and this 2nd port is not implemented in the
current hardware so t's possible to get a crash (invalid access to a
2nd CTPCI IDE port).
- On all targets, added ATAPI devices to SCSIDRV (ide_scsi.S).
FIREBEE and FALCON with CT60/CTPCI has IDE and IDE2 (IDE not
compatible). SCSI cookie added before hard disk driver boot.
- Added LZMA decoder for a better compression of PCI drivers
(LzmaDecode.c).
- On CTPCI fixed PEND register bits test inverted, and finnally
revoved this test who can caused loop inside interrupt.
- Added boot order entry for CTPCI IDE (boot.S).
- Try to fix CT60 flash boot problems by reading until 16 times the TOS in
flash if the CRC is bad before apply the patches in SDRAM (boot2.S).
- Changed boot order for 4 IDE devices with a CTPCI (boot2.S).
- Rewrited conout routines in C for Videl or graphic card (planes or
without planes, with or without accel routines from drivers part.
TOS404 VT52 routines table at 0xE13268 used, theses routines use the A4
register as Line A pointer (bios.S, bios2.S, and conout.c). Not used
on Coldfire targets, there are a crash when screen changed.
- Added 5 retry loops to boot keyboard test, sometimes Eiffel
characters are lost on the FIREBEE (boot2.S).

2 changes: 2 additions & 0 deletions flash.tos/doc/video_xbios.txt
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ typedef struct screeninfo
long pagemem; /* needed memory for one page */
long max_x; /* max. possible width */
long max_y; /* max. possible heigth */
long refresh; /* refresh in Hz */
long pixclock; /* pixel clock in pS */
} SCREENINFO;

#define BLK_ERR 0
Expand Down
Loading

0 comments on commit 1abbaff

Please sign in to comment.