SM0 She11
Path:
/
/
usr
/
include
/
linux
Full Path (server): /usr/include/linux
Create Fil3
Upl04d Fil3
📄 a.out.h
[E]
[D]
[R]
📄 acct.h
[E]
[D]
[R]
📄 adb.h
[E]
[D]
[R]
📄 adfs_fs.h
[E]
[D]
[R]
📄 affs_hardblocks.h
[E]
[D]
[R]
📄 agpgart.h
[E]
[D]
[R]
📄 aio_abi.h
[E]
[D]
[R]
📄 apm_bios.h
[E]
[D]
[R]
📄 arcfb.h
[E]
[D]
[R]
📄 atalk.h
[E]
[D]
[R]
📄 atm.h
[E]
[D]
[R]
📄 atm_eni.h
[E]
[D]
[R]
📄 atm_he.h
[E]
[D]
[R]
📄 atm_idt77105.h
[E]
[D]
[R]
📄 atm_nicstar.h
[E]
[D]
[R]
📄 atm_tcp.h
[E]
[D]
[R]
📄 atm_zatm.h
[E]
[D]
[R]
📄 atmapi.h
[E]
[D]
[R]
📄 atmarp.h
[E]
[D]
[R]
📄 atmbr2684.h
[E]
[D]
[R]
📄 atmclip.h
[E]
[D]
[R]
📄 atmdev.h
[E]
[D]
[R]
📄 atmioc.h
[E]
[D]
[R]
📄 atmlec.h
[E]
[D]
[R]
📄 atmmpc.h
[E]
[D]
[R]
📄 atmppp.h
[E]
[D]
[R]
📄 atmsap.h
[E]
[D]
[R]
📄 atmsvc.h
[E]
[D]
[R]
📄 audit.h
[E]
[D]
[R]
📄 auto_fs.h
[E]
[D]
[R]
📄 auto_fs4.h
[E]
[D]
[R]
📄 auxvec.h
[E]
[D]
[R]
📄 ax25.h
[E]
[D]
[R]
📄 b1lli.h
[E]
[D]
[R]
📄 baycom.h
[E]
[D]
[R]
📄 bfs_fs.h
[E]
[D]
[R]
📄 binfmts.h
[E]
[D]
[R]
📄 blkpg.h
[E]
[D]
[R]
📄 blktrace_api.h
[E]
[D]
[R]
📄 bpf.h
[E]
[D]
[R]
📄 bpf_common.h
[E]
[D]
[R]
📄 bpf_perf_event.h
[E]
[D]
[R]
📄 bpqether.h
[E]
[D]
[R]
📄 bsg.h
[E]
[D]
[R]
📄 bt-bmc.h
[E]
[D]
[R]
📄 btrfs.h
[E]
[D]
[R]
📁 byteorder
Open
[D]
[R]
📁 caif
Open
[D]
[R]
📁 can
Open
[D]
[R]
📄 can.h
[E]
[D]
[R]
📄 capability.h
[E]
[D]
[R]
📄 capi.h
[E]
[D]
[R]
📄 cciss_defs.h
[E]
[D]
[R]
📄 cciss_ioctl.h
[E]
[D]
[R]
📄 cdrom.h
[E]
[D]
[R]
📄 cgroupstats.h
[E]
[D]
[R]
📄 chio.h
[E]
[D]
[R]
📄 cm4000_cs.h
[E]
[D]
[R]
📄 cn_proc.h
[E]
[D]
[R]
📄 coda.h
[E]
[D]
[R]
📄 coda_psdev.h
[E]
[D]
[R]
📄 coff.h
[E]
[D]
[R]
📄 connector.h
[E]
[D]
[R]
📄 const.h
[E]
[D]
[R]
📄 cramfs_fs.h
[E]
[D]
[R]
📄 cuda.h
[E]
[D]
[R]
📄 cyclades.h
[E]
[D]
[R]
📄 cycx_cfm.h
[E]
[D]
[R]
📄 dcbnl.h
[E]
[D]
[R]
📄 dccp.h
[E]
[D]
[R]
📄 devlink.h
[E]
[D]
[R]
📄 dlm.h
[E]
[D]
[R]
📄 dlm_device.h
[E]
[D]
[R]
📄 dlm_netlink.h
[E]
[D]
[R]
📄 dlm_plock.h
[E]
[D]
[R]
📄 dlmconstants.h
[E]
[D]
[R]
📄 dm-ioctl.h
[E]
[D]
[R]
📄 dm-log-userspace.h
[E]
[D]
[R]
📄 dn.h
[E]
[D]
[R]
📄 dqblk_xfs.h
[E]
[D]
[R]
📁 dvb
Open
[D]
[R]
📄 edd.h
[E]
[D]
[R]
📄 efs_fs_sb.h
[E]
[D]
[R]
📄 elf-em.h
[E]
[D]
[R]
📄 elf-fdpic.h
[E]
[D]
[R]
📄 elf.h
[E]
[D]
[R]
📄 elfcore.h
[E]
[D]
[R]
📄 errno.h
[E]
[D]
[R]
📄 errqueue.h
[E]
[D]
[R]
📄 ethtool.h
[E]
[D]
[R]
📄 eventpoll.h
[E]
[D]
[R]
📄 fadvise.h
[E]
[D]
[R]
📄 falloc.h
[E]
[D]
[R]
📄 fanotify.h
[E]
[D]
[R]
📄 fb.h
[E]
[D]
[R]
📄 fcntl.h
[E]
[D]
[R]
📄 fd.h
[E]
[D]
[R]
📄 fdreg.h
[E]
[D]
[R]
📄 fib_rules.h
[E]
[D]
[R]
📄 fiemap.h
[E]
[D]
[R]
📄 filter.h
[E]
[D]
[R]
📄 firewire-cdev.h
[E]
[D]
[R]
📄 firewire-constants.h
[E]
[D]
[R]
📄 flat.h
[E]
[D]
[R]
📄 fou.h
[E]
[D]
[R]
📄 fs.h
[E]
[D]
[R]
📄 fsl_hypervisor.h
[E]
[D]
[R]
📄 fuse.h
[E]
[D]
[R]
📄 futex.h
[E]
[D]
[R]
📄 gameport.h
[E]
[D]
[R]
📄 gen_stats.h
[E]
[D]
[R]
📄 genetlink.h
[E]
[D]
[R]
📄 gfs2_ondisk.h
[E]
[D]
[R]
📄 gigaset_dev.h
[E]
[D]
[R]
📁 hdlc
Open
[D]
[R]
📄 hdlc.h
[E]
[D]
[R]
📄 hdlcdrv.h
[E]
[D]
[R]
📄 hdreg.h
[E]
[D]
[R]
📄 hid.h
[E]
[D]
[R]
📄 hiddev.h
[E]
[D]
[R]
📄 hidraw.h
[E]
[D]
[R]
📄 hpet.h
[E]
[D]
[R]
📁 hsi
Open
[D]
[R]
📄 hw_breakpoint.h
[E]
[D]
[R]
📄 hyperv.h
[E]
[D]
[R]
📄 hysdn_if.h
[E]
[D]
[R]
📄 i2c-dev.h
[E]
[D]
[R]
📄 i2c.h
[E]
[D]
[R]
📄 i2o-dev.h
[E]
[D]
[R]
📄 i8k.h
[E]
[D]
[R]
📄 icmp.h
[E]
[D]
[R]
📄 icmpv6.h
[E]
[D]
[R]
📄 if.h
[E]
[D]
[R]
📄 if_addr.h
[E]
[D]
[R]
📄 if_addrlabel.h
[E]
[D]
[R]
📄 if_alg.h
[E]
[D]
[R]
📄 if_arcnet.h
[E]
[D]
[R]
📄 if_arp.h
[E]
[D]
[R]
📄 if_bonding.h
[E]
[D]
[R]
📄 if_bridge.h
[E]
[D]
[R]
📄 if_cablemodem.h
[E]
[D]
[R]
📄 if_eql.h
[E]
[D]
[R]
📄 if_ether.h
[E]
[D]
[R]
📄 if_fc.h
[E]
[D]
[R]
📄 if_fddi.h
[E]
[D]
[R]
📄 if_frad.h
[E]
[D]
[R]
📄 if_hippi.h
[E]
[D]
[R]
📄 if_infiniband.h
[E]
[D]
[R]
📄 if_link.h
[E]
[D]
[R]
📄 if_ltalk.h
[E]
[D]
[R]
📄 if_macsec.h
[E]
[D]
[R]
📄 if_packet.h
[E]
[D]
[R]
📄 if_phonet.h
[E]
[D]
[R]
📄 if_plip.h
[E]
[D]
[R]
📄 if_ppp.h
[E]
[D]
[R]
📄 if_pppol2tp.h
[E]
[D]
[R]
📄 if_pppox.h
[E]
[D]
[R]
📄 if_slip.h
[E]
[D]
[R]
📄 if_team.h
[E]
[D]
[R]
📄 if_tun.h
[E]
[D]
[R]
📄 if_tunnel.h
[E]
[D]
[R]
📄 if_vlan.h
[E]
[D]
[R]
📄 if_x25.h
[E]
[D]
[R]
📄 ife.h
[E]
[D]
[R]
📄 igmp.h
[E]
[D]
[R]
📁 iio
Open
[D]
[R]
📄 in.h
[E]
[D]
[R]
📄 in6.h
[E]
[D]
[R]
📄 in_route.h
[E]
[D]
[R]
📄 inet_diag.h
[E]
[D]
[R]
📄 inotify.h
[E]
[D]
[R]
📄 input.h
[E]
[D]
[R]
📄 ioctl.h
[E]
[D]
[R]
📄 ip.h
[E]
[D]
[R]
📄 ip6_tunnel.h
[E]
[D]
[R]
📄 ip_vs.h
[E]
[D]
[R]
📄 ipc.h
[E]
[D]
[R]
📄 ipmi.h
[E]
[D]
[R]
📄 ipmi_msgdefs.h
[E]
[D]
[R]
📄 ipsec.h
[E]
[D]
[R]
📄 ipv6.h
[E]
[D]
[R]
📄 ipv6_route.h
[E]
[D]
[R]
📄 ipx.h
[E]
[D]
[R]
📄 irda.h
[E]
[D]
[R]
📄 irqnr.h
[E]
[D]
[R]
📁 isdn
Open
[D]
[R]
📄 isdn.h
[E]
[D]
[R]
📄 isdn_divertif.h
[E]
[D]
[R]
📄 isdn_ppp.h
[E]
[D]
[R]
📄 isdnif.h
[E]
[D]
[R]
📄 iso_fs.h
[E]
[D]
[R]
📄 ivtv.h
[E]
[D]
[R]
📄 ivtvfb.h
[E]
[D]
[R]
📄 ixjuser.h
[E]
[D]
[R]
📄 jffs2.h
[E]
[D]
[R]
📄 joystick.h
[E]
[D]
[R]
📄 kd.h
[E]
[D]
[R]
📄 kdev_t.h
[E]
[D]
[R]
📄 kernel-page-flags.h
[E]
[D]
[R]
📄 kernel.h
[E]
[D]
[R]
📄 kernelcapi.h
[E]
[D]
[R]
📄 kexec.h
[E]
[D]
[R]
📄 keyboard.h
[E]
[D]
[R]
📄 keyctl.h
[E]
[D]
[R]
📄 kvm.h
[E]
[D]
[R]
📄 kvm_para.h
[E]
[D]
[R]
📄 l2tp.h
[E]
[D]
[R]
📄 libc-compat.h
[E]
[D]
[R]
📄 limits.h
[E]
[D]
[R]
📄 llc.h
[E]
[D]
[R]
📄 loop.h
[E]
[D]
[R]
📄 lp.h
[E]
[D]
[R]
📄 lwtunnel.h
[E]
[D]
[R]
📄 magic.h
[E]
[D]
[R]
📄 major.h
[E]
[D]
[R]
📄 map_to_7segment.h
[E]
[D]
[R]
📄 matroxfb.h
[E]
[D]
[R]
📄 mdio.h
[E]
[D]
[R]
📄 media.h
[E]
[D]
[R]
📄 mei.h
[E]
[D]
[R]
📄 membarrier.h
[E]
[D]
[R]
📄 memfd.h
[E]
[D]
[R]
📄 mempolicy.h
[E]
[D]
[R]
📄 meye.h
[E]
[D]
[R]
📄 mii.h
[E]
[D]
[R]
📄 minix_fs.h
[E]
[D]
[R]
📄 mman.h
[E]
[D]
[R]
📁 mmc
Open
[D]
[R]
📄 mmtimer.h
[E]
[D]
[R]
📄 mpls.h
[E]
[D]
[R]
📄 mqueue.h
[E]
[D]
[R]
📄 mroute.h
[E]
[D]
[R]
📄 mroute6.h
[E]
[D]
[R]
📄 msdos_fs.h
[E]
[D]
[R]
📄 msg.h
[E]
[D]
[R]
📄 mtio.h
[E]
[D]
[R]
📄 n_r3964.h
[E]
[D]
[R]
📄 nbd.h
[E]
[D]
[R]
📄 ncp.h
[E]
[D]
[R]
📄 ncp_fs.h
[E]
[D]
[R]
📄 ncp_mount.h
[E]
[D]
[R]
📄 ncp_no.h
[E]
[D]
[R]
📄 ndctl.h
[E]
[D]
[R]
📄 neighbour.h
[E]
[D]
[R]
📄 net.h
[E]
[D]
[R]
📄 net_dropmon.h
[E]
[D]
[R]
📄 net_namespace.h
[E]
[D]
[R]
📄 net_tstamp.h
[E]
[D]
[R]
📄 netconf.h
[E]
[D]
[R]
📄 netdevice.h
[E]
[D]
[R]
📁 netfilter
Open
[D]
[R]
📄 netfilter.h
[E]
[D]
[R]
📁 netfilter_arp
Open
[D]
[R]
📄 netfilter_arp.h
[E]
[D]
[R]
📁 netfilter_bridge
Open
[D]
[R]
📄 netfilter_bridge.h
[E]
[D]
[R]
📄 netfilter_decnet.h
[E]
[D]
[R]
📁 netfilter_ipv4
Open
[D]
[R]
📄 netfilter_ipv4.h
[E]
[D]
[R]
📁 netfilter_ipv6
Open
[D]
[R]
📄 netfilter_ipv6.h
[E]
[D]
[R]
📄 netlink.h
[E]
[D]
[R]
📄 netlink_diag.h
[E]
[D]
[R]
📄 netrom.h
[E]
[D]
[R]
📄 nfc.h
[E]
[D]
[R]
📄 nfs.h
[E]
[D]
[R]
📄 nfs2.h
[E]
[D]
[R]
📄 nfs3.h
[E]
[D]
[R]
📄 nfs4.h
[E]
[D]
[R]
📄 nfs4_mount.h
[E]
[D]
[R]
📄 nfs_fs.h
[E]
[D]
[R]
📄 nfs_idmap.h
[E]
[D]
[R]
📄 nfs_mount.h
[E]
[D]
[R]
📄 nfsacl.h
[E]
[D]
[R]
📁 nfsd
Open
[D]
[R]
📄 nl80211.h
[E]
[D]
[R]
📄 nubus.h
[E]
[D]
[R]
📄 nvme_ioctl.h
[E]
[D]
[R]
📄 nvram.h
[E]
[D]
[R]
📄 omap3isp.h
[E]
[D]
[R]
📄 omapfb.h
[E]
[D]
[R]
📄 oom.h
[E]
[D]
[R]
📄 openvswitch.h
[E]
[D]
[R]
📄 packet_diag.h
[E]
[D]
[R]
📄 param.h
[E]
[D]
[R]
📄 parport.h
[E]
[D]
[R]
📄 patchkey.h
[E]
[D]
[R]
📄 pci.h
[E]
[D]
[R]
📄 pci_regs.h
[E]
[D]
[R]
📄 perf_event.h
[E]
[D]
[R]
📄 personality.h
[E]
[D]
[R]
📄 pfkeyv2.h
[E]
[D]
[R]
📄 pg.h
[E]
[D]
[R]
📄 phantom.h
[E]
[D]
[R]
📄 phonet.h
[E]
[D]
[R]
📄 pkt_cls.h
[E]
[D]
[R]
📄 pkt_sched.h
[E]
[D]
[R]
📄 pktcdvd.h
[E]
[D]
[R]
📄 pmu.h
[E]
[D]
[R]
📄 poll.h
[E]
[D]
[R]
📄 posix_types.h
[E]
[D]
[R]
📄 ppdev.h
[E]
[D]
[R]
📄 ppp-comp.h
[E]
[D]
[R]
📄 ppp-ioctl.h
[E]
[D]
[R]
📄 ppp_defs.h
[E]
[D]
[R]
📄 pps.h
[E]
[D]
[R]
📄 prctl.h
[E]
[D]
[R]
📄 psample.h
[E]
[D]
[R]
📄 ptp_clock.h
[E]
[D]
[R]
📄 ptrace.h
[E]
[D]
[R]
📄 qnx4_fs.h
[E]
[D]
[R]
📄 qnxtypes.h
[E]
[D]
[R]
📄 quota.h
[E]
[D]
[R]
📄 radeonfb.h
[E]
[D]
[R]
📁 raid
Open
[D]
[R]
📄 random.h
[E]
[D]
[R]
📄 raw.h
[E]
[D]
[R]
📄 rds.h
[E]
[D]
[R]
📄 reboot.h
[E]
[D]
[R]
📄 reiserfs_fs.h
[E]
[D]
[R]
📄 reiserfs_xattr.h
[E]
[D]
[R]
📄 resource.h
[E]
[D]
[R]
📄 rfkill.h
[E]
[D]
[R]
📄 romfs_fs.h
[E]
[D]
[R]
📄 rose.h
[E]
[D]
[R]
📄 route.h
[E]
[D]
[R]
📄 rtc.h
[E]
[D]
[R]
📄 rtnetlink.h
[E]
[D]
[R]
📄 scc.h
[E]
[D]
[R]
📄 sched.h
[E]
[D]
[R]
📄 screen_info.h
[E]
[D]
[R]
📄 sctp.h
[E]
[D]
[R]
📄 sdla.h
[E]
[D]
[R]
📄 seccomp.h
[E]
[D]
[R]
📄 securebits.h
[E]
[D]
[R]
📄 selinux_netlink.h
[E]
[D]
[R]
📄 sem.h
[E]
[D]
[R]
📄 serial.h
[E]
[D]
[R]
📄 serial_core.h
[E]
[D]
[R]
📄 serial_reg.h
[E]
[D]
[R]
📄 serio.h
[E]
[D]
[R]
📄 shm.h
[E]
[D]
[R]
📄 signal.h
[E]
[D]
[R]
📄 signalfd.h
[E]
[D]
[R]
📄 snmp.h
[E]
[D]
[R]
📄 sock_diag.h
[E]
[D]
[R]
📄 socket.h
[E]
[D]
[R]
📄 sockios.h
[E]
[D]
[R]
📄 som.h
[E]
[D]
[R]
📄 sonet.h
[E]
[D]
[R]
📄 sonypi.h
[E]
[D]
[R]
📄 sound.h
[E]
[D]
[R]
📄 soundcard.h
[E]
[D]
[R]
📁 spi
Open
[D]
[R]
📄 stat.h
[E]
[D]
[R]
📄 stddef.h
[E]
[D]
[R]
📄 string.h
[E]
[D]
[R]
📁 sunrpc
Open
[D]
[R]
📄 suspend_ioctls.h
[E]
[D]
[R]
📄 swab.h
[E]
[D]
[R]
📄 synclink.h
[E]
[D]
[R]
📄 sysctl.h
[E]
[D]
[R]
📄 sysinfo.h
[E]
[D]
[R]
📄 target_core_user.h
[E]
[D]
[R]
📄 taskstats.h
[E]
[D]
[R]
📁 tc_act
Open
[D]
[R]
📁 tc_ematch
Open
[D]
[R]
📄 tcp.h
[E]
[D]
[R]
📄 tcp_metrics.h
[E]
[D]
[R]
📄 telephony.h
[E]
[D]
[R]
📄 termios.h
[E]
[D]
[R]
📄 time.h
[E]
[D]
[R]
📄 times.h
[E]
[D]
[R]
📄 timex.h
[E]
[D]
[R]
📄 tiocl.h
[E]
[D]
[R]
📄 tipc.h
[E]
[D]
[R]
📄 tipc_config.h
[E]
[D]
[R]
📄 toshiba.h
[E]
[D]
[R]
📄 tty.h
[E]
[D]
[R]
📄 tty_flags.h
[E]
[D]
[R]
📄 types.h
[E]
[D]
[R]
📄 udf_fs_i.h
[E]
[D]
[R]
📄 udp.h
[E]
[D]
[R]
📄 uhid.h
[E]
[D]
[R]
📄 uinput.h
[E]
[D]
[R]
📄 uio.h
[E]
[D]
[R]
📄 ultrasound.h
[E]
[D]
[R]
📄 un.h
[E]
[D]
[R]
📄 unistd.h
[E]
[D]
[R]
📄 unix_diag.h
[E]
[D]
[R]
📁 usb
Open
[D]
[R]
📄 usbdevice_fs.h
[E]
[D]
[R]
📄 userfaultfd.h
[E]
[D]
[R]
📄 utime.h
[E]
[D]
[R]
📄 utsname.h
[E]
[D]
[R]
📄 uuid.h
[E]
[D]
[R]
📄 uvcvideo.h
[E]
[D]
[R]
📄 v4l2-common.h
[E]
[D]
[R]
📄 v4l2-controls.h
[E]
[D]
[R]
📄 v4l2-dv-timings.h
[E]
[D]
[R]
📄 v4l2-mediabus.h
[E]
[D]
[R]
📄 v4l2-subdev.h
[E]
[D]
[R]
📄 version.h
[E]
[D]
[R]
📄 veth.h
[E]
[D]
[R]
📄 vfio.h
[E]
[D]
[R]
📄 vhost.h
[E]
[D]
[R]
📄 videodev2.h
[E]
[D]
[R]
📄 virtio_9p.h
[E]
[D]
[R]
📄 virtio_balloon.h
[E]
[D]
[R]
📄 virtio_blk.h
[E]
[D]
[R]
📄 virtio_config.h
[E]
[D]
[R]
📄 virtio_console.h
[E]
[D]
[R]
📄 virtio_gpu.h
[E]
[D]
[R]
📄 virtio_ids.h
[E]
[D]
[R]
📄 virtio_input.h
[E]
[D]
[R]
📄 virtio_net.h
[E]
[D]
[R]
📄 virtio_pci.h
[E]
[D]
[R]
📄 virtio_ring.h
[E]
[D]
[R]
📄 virtio_rng.h
[E]
[D]
[R]
📄 virtio_scsi.h
[E]
[D]
[R]
📄 virtio_types.h
[E]
[D]
[R]
📄 virtio_vsock.h
[E]
[D]
[R]
📄 vm_sockets.h
[E]
[D]
[R]
📄 vsockmon.h
[E]
[D]
[R]
📄 vt.h
[E]
[D]
[R]
📄 vtpm_proxy.h
[E]
[D]
[R]
📄 wait.h
[E]
[D]
[R]
📄 wanrouter.h
[E]
[D]
[R]
📄 watchdog.h
[E]
[D]
[R]
📁 wimax
Open
[D]
[R]
📄 wimax.h
[E]
[D]
[R]
📄 wireless.h
[E]
[D]
[R]
📄 wmi.h
[E]
[D]
[R]
📄 x25.h
[E]
[D]
[R]
📄 xattr.h
[E]
[D]
[R]
📄 xfrm.h
[E]
[D]
[R]
Editing: pmu.h
/* * Definitions for talking to the PMU. The PMU is a microcontroller * which controls battery charging and system power on PowerBook 3400 * and 2400 models as well as the RTC and various other things. * * Copyright (C) 1998 Paul Mackerras. */ #ifndef _LINUX_PMU_H #define _LINUX_PMU_H #define PMU_DRIVER_VERSION 2 /* * PMU commands */ #define PMU_POWER_CTRL0 0x10 /* control power of some devices */ #define PMU_POWER_CTRL 0x11 /* control power of some devices */ #define PMU_ADB_CMD 0x20 /* send ADB packet */ #define PMU_ADB_POLL_OFF 0x21 /* disable ADB auto-poll */ #define PMU_WRITE_NVRAM 0x33 /* write non-volatile RAM */ #define PMU_READ_NVRAM 0x3b /* read non-volatile RAM */ #define PMU_SET_RTC 0x30 /* set real-time clock */ #define PMU_READ_RTC 0x38 /* read real-time clock */ #define PMU_SET_VOLBUTTON 0x40 /* set volume up/down position */ #define PMU_BACKLIGHT_BRIGHT 0x41 /* set backlight brightness */ #define PMU_GET_VOLBUTTON 0x48 /* get volume up/down position */ #define PMU_PCEJECT 0x4c /* eject PC-card from slot */ #define PMU_BATTERY_STATE 0x6b /* report battery state etc. */ #define PMU_SMART_BATTERY_STATE 0x6f /* report battery state (new way) */ #define PMU_SET_INTR_MASK 0x70 /* set PMU interrupt mask */ #define PMU_INT_ACK 0x78 /* read interrupt bits */ #define PMU_SHUTDOWN 0x7e /* turn power off */ #define PMU_CPU_SPEED 0x7d /* control CPU speed on some models */ #define PMU_SLEEP 0x7f /* put CPU to sleep */ #define PMU_POWER_EVENTS 0x8f /* Send power-event commands to PMU */ #define PMU_I2C_CMD 0x9a /* I2C operations */ #define PMU_RESET 0xd0 /* reset CPU */ #define PMU_GET_BRIGHTBUTTON 0xd9 /* report brightness up/down pos */ #define PMU_GET_COVER 0xdc /* report cover open/closed */ #define PMU_SYSTEM_READY 0xdf /* tell PMU we are awake */ #define PMU_GET_VERSION 0xea /* read the PMU version */ /* Bits to use with the PMU_POWER_CTRL0 command */ #define PMU_POW0_ON 0x80 /* OR this to power ON the device */ #define PMU_POW0_OFF 0x00 /* leave bit 7 to 0 to power it OFF */ #define PMU_POW0_HARD_DRIVE 0x04 /* Hard drive power (on wallstreet/lombard ?) */ /* Bits to use with the PMU_POWER_CTRL command */ #define PMU_POW_ON 0x80 /* OR this to power ON the device */ #define PMU_POW_OFF 0x00 /* leave bit 7 to 0 to power it OFF */ #define PMU_POW_BACKLIGHT 0x01 /* backlight power */ #define PMU_POW_CHARGER 0x02 /* battery charger power */ #define PMU_POW_IRLED 0x04 /* IR led power (on wallstreet) */ #define PMU_POW_MEDIABAY 0x08 /* media bay power (wallstreet/lombard ?) */ /* Bits in PMU interrupt and interrupt mask bytes */ #define PMU_INT_PCEJECT 0x04 /* PC-card eject buttons */ #define PMU_INT_SNDBRT 0x08 /* sound/brightness up/down buttons */ #define PMU_INT_ADB 0x10 /* ADB autopoll or reply data */ #define PMU_INT_BATTERY 0x20 /* Battery state change */ #define PMU_INT_ENVIRONMENT 0x40 /* Environment interrupts */ #define PMU_INT_TICK 0x80 /* 1-second tick interrupt */ /* Other bits in PMU interrupt valid when PMU_INT_ADB is set */ #define PMU_INT_ADB_AUTO 0x04 /* ADB autopoll, when PMU_INT_ADB */ #define PMU_INT_WAITING_CHARGER 0x01 /* ??? */ #define PMU_INT_AUTO_SRQ_POLL 0x02 /* ??? */ /* Bits in the environement message (either obtained via PMU_GET_COVER, * or via PMU_INT_ENVIRONMENT on core99 */ #define PMU_ENV_LID_CLOSED 0x01 /* The lid is closed */ /* I2C related definitions */ #define PMU_I2C_MODE_SIMPLE 0 #define PMU_I2C_MODE_STDSUB 1 #define PMU_I2C_MODE_COMBINED 2 #define PMU_I2C_BUS_STATUS 0 #define PMU_I2C_BUS_SYSCLK 1 #define PMU_I2C_BUS_POWER 2 #define PMU_I2C_STATUS_OK 0 #define PMU_I2C_STATUS_DATAREAD 1 #define PMU_I2C_STATUS_BUSY 0xfe /* Kind of PMU (model) */ enum { PMU_UNKNOWN, PMU_OHARE_BASED, /* 2400, 3400, 3500 (old G3 powerbook) */ PMU_HEATHROW_BASED, /* PowerBook G3 series */ PMU_PADDINGTON_BASED, /* 1999 PowerBook G3 */ PMU_KEYLARGO_BASED, /* Core99 motherboard (PMU99) */ PMU_68K_V1, /* 68K PMU, version 1 */ PMU_68K_V2, /* 68K PMU, version 2 */ }; /* PMU PMU_POWER_EVENTS commands */ enum { PMU_PWR_GET_POWERUP_EVENTS = 0x00, PMU_PWR_SET_POWERUP_EVENTS = 0x01, PMU_PWR_CLR_POWERUP_EVENTS = 0x02, PMU_PWR_GET_WAKEUP_EVENTS = 0x03, PMU_PWR_SET_WAKEUP_EVENTS = 0x04, PMU_PWR_CLR_WAKEUP_EVENTS = 0x05, }; /* Power events wakeup bits */ enum { PMU_PWR_WAKEUP_KEY = 0x01, /* Wake on key press */ PMU_PWR_WAKEUP_AC_INSERT = 0x02, /* Wake on AC adapter plug */ PMU_PWR_WAKEUP_AC_CHANGE = 0x04, PMU_PWR_WAKEUP_LID_OPEN = 0x08, PMU_PWR_WAKEUP_RING = 0x10, }; /* * Ioctl commands for the /dev/pmu device */ #include <linux/ioctl.h> /* no param */ #define PMU_IOC_SLEEP _IO('B', 0) /* out param: u32* backlight value: 0 to 15 */ #define PMU_IOC_GET_BACKLIGHT _IOR('B', 1, size_t) /* in param: u32 backlight value: 0 to 15 */ #define PMU_IOC_SET_BACKLIGHT _IOW('B', 2, size_t) /* out param: u32* PMU model */ #define PMU_IOC_GET_MODEL _IOR('B', 3, size_t) /* out param: u32* has_adb: 0 or 1 */ #define PMU_IOC_HAS_ADB _IOR('B', 4, size_t) /* out param: u32* can_sleep: 0 or 1 */ #define PMU_IOC_CAN_SLEEP _IOR('B', 5, size_t) /* no param, but historically was _IOR('B', 6, 0), meaning 4 bytes */ #define PMU_IOC_GRAB_BACKLIGHT _IOR('B', 6, size_t) #endif /* _LINUX_PMU_H */
Save