Skip to content

Commit

Permalink
Plan 9 from Bell Labs 2003-04-15
Browse files Browse the repository at this point in the history
  • Loading branch information
0intro committed Apr 15, 2003
1 parent 8a21138 commit b24f48e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pc/sd53c8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ extern SDifc sd53c8xxifc;

#else

#define KPRINT if(1) print
#define IPRINT if(1) print
#define KPRINT if(0) print
#define IPRINT if(0) print
#define DEBUG(n) (0)
#define IFLUSH()

Expand Down
17 changes: 17 additions & 0 deletions pc/sdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,23 @@ atapnp(void)
* Bugfix code here...
*/
break;
case (0x7441<<16)|0x1022: /* AMD 768 */
/*
* Set:
* 0x41 prefetch, postwrite;
* 0x43 FIFO configuration 1/2 and 1/2;
* 0x44 status register read retry;
* 0x46 DMA read and end of sector flush.
*/
r = pcicfgr8(p, 0x41);
pcicfgw8(p, 0x41, r|0xF0);
r = pcicfgr8(p, 0x43);
pcicfgw8(p, 0x43, (r & 0x90)|0x2A);
r = pcicfgr8(p, 0x44);
pcicfgw8(p, 0x44, r|0x08);
r = pcicfgr8(p, 0x46);
pcicfgw8(p, 0x46, (r & 0x0C)|0xF0);
break;
case (0x0646<<16)|0x1095: /* CMD 646 */
case (0x0571<<16)|0x1106: /* VIA 82C686 */
case (0x0211<<16)|0x1166: /* ServerWorks IB6566 */
Expand Down

0 comments on commit b24f48e

Please sign in to comment.