Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
misc.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/rtc.h>
#include <linux/mm.h>
#include <linux/adb.h>
#include <linux/cuda.h>
#include <linux/pmu.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/rtc.h>
#include <asm/segment.h>
#include <asm/setup.h>
#include <asm/macintosh.h>
#include <asm/mac_via.h>
#include <asm/mac_oss.h>
#include <asm/bootinfo.h>
#include <asm/machdep.h>

Go to the source code of this file.

Macros

#define BOOTINFO_COMPAT_1_0
 
#define RTC_OFFSET   2082844800
 
#define cuda_read_time()   0
 
#define cuda_write_time(n)
 
#define cuda_read_pram   NULL
 
#define cuda_write_pram   NULL
 
#define pmu_read_time()   0
 
#define pmu_write_time(n)
 
#define pmu_read_pram   NULL
 
#define pmu_write_pram   NULL
 
#define maciisi_read_time()   0
 
#define maciisi_write_time(n)
 
#define maciisi_read_pram   NULL
 
#define maciisi_write_pram   NULL
 
#define SECS_PER_MINUTE   (60)
 
#define SECS_PER_HOUR   (SECS_PER_MINUTE * 60)
 
#define SECS_PER_DAY   (SECS_PER_HOUR * 24)
 
#define DIV(a, b)   ((a) / (b) - ((a) % (b) < 0))
 
#define LEAPS_THRU_END_OF(y)   (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
 
#define __isleap(year)   ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
 

Functions

void mac_pram_read (int offset, __u8 *buffer, int len)
 
void mac_pram_write (int offset, __u8 *buffer, int len)
 
void mac_poweroff (void)
 
void mac_reset (void)
 
int mac_hwclk (int op, struct rtc_time *t)
 
int mac_set_clock_mmss (unsigned long nowtime)
 

Macro Definition Documentation

#define __isleap (   year)    ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
#define BOOTINFO_COMPAT_1_0

Definition at line 28 of file misc.c.

#define cuda_read_pram   NULL

Definition at line 89 of file misc.c.

#define cuda_read_time ( )    0

Definition at line 87 of file misc.c.

#define cuda_write_pram   NULL

Definition at line 90 of file misc.c.

#define cuda_write_time (   n)

Definition at line 88 of file misc.c.

#define DIV (   a,
  b 
)    ((a) / (b) - ((a) % (b) < 0))
#define LEAPS_THRU_END_OF (   y)    (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
#define maciisi_read_pram   NULL

Definition at line 192 of file misc.c.

#define maciisi_read_time ( )    0

Definition at line 190 of file misc.c.

#define maciisi_write_pram   NULL

Definition at line 193 of file misc.c.

#define maciisi_write_time (   n)

Definition at line 191 of file misc.c.

#define pmu_read_pram   NULL

Definition at line 144 of file misc.c.

#define pmu_read_time ( )    0

Definition at line 142 of file misc.c.

#define pmu_write_pram   NULL

Definition at line 145 of file misc.c.

#define pmu_write_time (   n)

Definition at line 143 of file misc.c.

#define RTC_OFFSET   2082844800

Definition at line 34 of file misc.c.

#define SECS_PER_DAY   (SECS_PER_HOUR * 24)

Definition at line 627 of file misc.c.

#define SECS_PER_HOUR   (SECS_PER_MINUTE * 60)

Definition at line 626 of file misc.c.

#define SECS_PER_MINUTE   (60)

Definition at line 625 of file misc.c.

Function Documentation

int mac_hwclk ( int  op,
struct rtc_time t 
)

Definition at line 695 of file misc.c.

void mac_poweroff ( void  )

Definition at line 504 of file misc.c.

void mac_pram_read ( int  offset,
__u8 buffer,
int  len 
)

Definition at line 458 of file misc.c.

void mac_pram_write ( int  offset,
__u8 buffer,
int  len 
)

Definition at line 481 of file misc.c.

void mac_reset ( void  )

Definition at line 530 of file misc.c.

int mac_set_clock_mmss ( unsigned long  nowtime)

Definition at line 761 of file misc.c.