+int smram_locked()
+{
+ unsigned char smramc = pci_read8(0, 0, 0, SMRAMC);
+
+ return (smramc & SMRAMC_LOCK) ? 1 : 0;
+}
+
+smram_state_t smram_save_state()
+{
+ return pci_read8(0, 0, 0, SMRAMC);
+}
+
+void smram_restore_state(smram_state_t state)
+{
+ return pci_write8(0, 0, 0, SMRAMC, state);
+}
+