]> Joshua Wise's Git repositories - netwatch.git/blobdiff - ich2/smram-ich2.c
Merge branch 'master' of /storage/git/netwatch
[netwatch.git] / ich2 / smram-ich2.c
index d274c852028c497e932e91d4aa2df572bcbae605..edf8ad5ffda83d1f7a03a5264875da15910ebf07 100644 (file)
@@ -127,3 +127,25 @@ int smram_aseg_set_state (int open) {
 
        return 0;
 }
+
+int smram_tseg_set_state (int open) {
+       unsigned char smramc;
+
+       if (smram_locked())
+               return -1;
+               
+       smramc = pci_read8(0, 0, 0, SMRAMC);
+
+       switch (open)
+       {
+       case SMRAM_TSEG_OPEN:
+               smramc = (smramc & 0x8F) | 0x00;
+               break;
+       default:
+               return -1;
+       }
+
+       pci_write8(0, 0, 0, SMRAMC, smramc);
+
+       return 0;
+}
This page took 0.027314 seconds and 4 git commands to generate.