Skip to content

Instantly share code, notes, and snippets.

View cyndis's full-sized avatar

Mikko Perttunen cyndis

  • NVIDIA Corporation
  • Espoo, Finland
View GitHub Profile
@cyndis
cyndis / thermtrip_test.c
Created August 13, 2014 08:41
Thermtrip test program
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
#define SOCTHERM_ADDR 0x700e2000
#define THERMTRIP_OFFS 0x80
int main() {
int mem_fd;
unsigned char *mem;