12 #include <asm/uaccess.h>
15 static int partition_id_show(
struct seq_file *
s,
void *
p)
26 static int system_serial_number_show(
struct seq_file *
s,
void *
p)
28 seq_printf(s,
"%s\n", sn_system_serial_number());
37 static int licenseID_show(
struct seq_file *s,
void *p)
39 seq_printf(s,
"0x%llx\n", sn_partition_serial_number_val());
48 static int coherence_id_show(
struct seq_file *s,
void *p)
65 .
open = partition_id_open,
72 .
open = system_serial_number_open,
79 .
open = licenseID_open,
86 .
open = coherence_id_open,
107 proc_create(
"partition_id", 0444, sgi_proc_dir,
108 &proc_partition_id_fops);
109 proc_create(
"system_serial_number", 0444, sgi_proc_dir,
110 &proc_system_sn_fops);
111 proc_create(
"licenseID", 0444, sgi_proc_dir, &proc_license_id_fops);
112 proc_create(
"coherence_id", 0444, sgi_proc_dir,
113 &proc_coherence_id_fops);
114 proc_create(
"sn_topology", 0444, sgi_proc_dir, &proc_sn_topo_fops);