changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: sdiahci: force Hudson SATA Controller to AHCI mode

changeset 7411: 82cc8a9cd294
parent 7410: e9634a89bcd9
child 7412: cae3f2645bdf
author: cinap_lenrek@felloff.net
date: Tue, 08 Oct 2019 13:53:57 +0200
files: sys/src/9/pc/sdiahci.c sys/src/9/pc/sdide.c
description: sdiahci: force Hudson SATA Controller to AHCI mode
     1.1--- a/sys/src/9/pc/sdiahci.c
     1.2+++ b/sys/src/9/pc/sdiahci.c
     1.3@@ -2102,8 +2102,10 @@ didtype(Pcidev *p)
     1.4 		break;
     1.5 	case 0x1022:
     1.6 		/* Hudson SATA Controller [AHCI mode] */
     1.7-		if(p->did == 0x7801)
     1.8+		if((p->did & 0xfffe) == 0x7800){
     1.9+			sbsetupahci(p);
    1.10 			return Tahci;
    1.11+		}
    1.12 		break;
    1.13 	case 0x10de:
    1.14 	case 0x1039:
     2.1--- a/sys/src/9/pc/sdide.c
     2.2+++ b/sys/src/9/pc/sdide.c
     2.3@@ -1990,7 +1990,6 @@ atapnp(void)
     2.4 			 */
     2.5 			break;
     2.6 		case (0x7441<<16)|0x1022:	/* AMD 768 */
     2.7-		case (0x7800<<16)|0x1022:
     2.8 			/*
     2.9 			 * Set:
    2.10 			 *	0x41	prefetch, postwrite;