Skip to content

Commit

Permalink
m68k: mac - Add a new entry in mac_model to identify the floppy contr…
Browse files Browse the repository at this point in the history
…oller type.

This patch adds a field "floppy_type" which can take the following values:

MAC_FLOPPY_IWM for an IWM based mac
MAC_FLOPPY_SWIM_ADDR1 for a SWIM based mac with controller at VIA1 + 0x1E000
MAC_FLOPPY_SWIM_ADDR2 for a SWIM based mac with controller at VIA1 + 0x16000
MAC_FLOPPY_IOP for an IOP based mac
MAC_FLOPPY_AV for an AV based mac

Signed-off-by: Laurent Vivier <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
  • Loading branch information
Laurent Vivier authored and geertu committed Mar 26, 2009
1 parent 612bfc9 commit 7ad93b4
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 54 deletions.
7 changes: 7 additions & 0 deletions arch/m68k/include/asm/macintosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct mac_model
char scc_type;
char ether_type;
char nubus_type;
char floppy_type;
};

#define MAC_ADB_NONE 0
Expand Down Expand Up @@ -71,6 +72,12 @@ struct mac_model
#define MAC_NO_NUBUS 0
#define MAC_NUBUS 1

#define MAC_FLOPPY_IWM 0
#define MAC_FLOPPY_SWIM_ADDR1 1
#define MAC_FLOPPY_SWIM_ADDR2 2
#define MAC_FLOPPY_SWIM_IOP 3
#define MAC_FLOPPY_AV 4

/*
* Gestalt numbers
*/
Expand Down
Loading

0 comments on commit 7ad93b4

Please sign in to comment.