Date: Thu, 21 Jun 2007 10:42:02 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122081 for review Message-ID: <200706211042.l5LAg2vp032741@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122081 Change 122081 by rdivacky@rdivacky_witten on 2007/06/21 10:41:48 IFC to get include/* files. Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/include/stdio.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/include/unistd.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/amd64/busdma_machdep.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/amd64/pmap.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/conf/GENERIC#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/isa/clock.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/arm/include/intr.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/common/main.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/Makefile#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/ofw_console.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/ofw_net.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/openfirm.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/openfirm.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/openfirm_mmu.c#2 delete .. //depot/projects/soc2007/rdivacky/linux_at/sys/boot/sparc64/loader/main.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/cam/cam_xpt.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/cam/cam_xpt_sim.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/cam/scsi/scsi_da.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/cam/scsi/scsi_low.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/cam/scsi/scsi_sa.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/freebsd32/freebsd32_misc.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/freebsd32/syscalls.master#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/conf/NOTES#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/conf/files#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/conf/files.sparc64#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/conf/files.sun4v#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/conf/options#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aac/aac_cam.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/acpi_support/acpi_panasonic.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/acpica/acpi.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/acpica/acpi_ec.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/acpica/acpi_hpet.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/acpica/acpivar.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/advansys/advansys.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/advansys/advlib.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/advansys/adwcam.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aha/aha.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ahb/ahb.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ahb/ahbreg.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic/aic.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic/aic_cbus.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic/aic_isa.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic/aic_pccard.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic/aicvar.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic7xxx/aic79xx_osm.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/aic7xxx/aic7xxx_osm.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/amd/amd.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/amr/amr_cam.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/arcmsr/arcmsr.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/asr/asr.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ata/atapi-cam.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/atkbdc/psm.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/bce/if_bce.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/bce/if_bcereg.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/buslogic/bt.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ciss/ciss.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/cxgb/cxgb_adapter.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/cxgb/cxgb_main.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/cxgb/cxgb_offload.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/cxgb/cxgb_sge.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/dpt/dpt.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/dpt/dpt_eisa.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/dpt/dpt_isa.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/dpt/dpt_pci.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/dpt/dpt_scsi.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/esp/ncr53c9x.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/boot_font.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/creator.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/gallant12x22.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/gallant12x22.h#2 delete .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/gfb.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/fb/machfb.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/firewire/sbp.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/firewire/sbp_targ.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/gem/if_gem.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/hptiop/hptiop.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/hptmv/entry.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/if_ndis/if_ndis_usb.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/iir/iir.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/iir/iir.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/iir/iir_pci.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/isp/isp_freebsd.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mc146818/mc146818.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mc146818/mc146818var.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mfi/mfi_cam.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mly/mly.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mpt/mpt_cam.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/mxge/if_mxge.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ofw/openfirm.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ofw/openfirm.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/pccard/pccard.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/ppbus/vpo.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/re/if_re.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/rr232x/osm_bsd.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/clone.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/clone.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/isa/ad1816.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/isa/ess.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/isa/mss.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/isa/sb16.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/isa/sb8.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/als4000.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/atiixp.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/au88x0.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/aureal.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/cmi.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/cs4281.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/csapcm.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/ds1.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/emu10k1.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/emu10kx-pcm.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/es137x.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/fm801.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/hda/hdac.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/ich.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/maestro.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/maestro3.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/neomagic.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/solo.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/t4dwave.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/via8233.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/via82c686.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pci/vibes.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/ac97.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/buffer.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/buffer.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/channel.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/channel.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/dsp.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/dsp.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/feeder.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/feeder_rate.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/feeder_volume.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/mixer.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/mixer.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/sndstat.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/sound.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/sound.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/pcm/vchan.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/sbus/cs4231.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/usb/uaudio.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/usb/uaudio_pcm.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sound/version.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/sym/sym_hipd.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/syscons/scgfbrndr.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/trm/trm.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/twa/tw_osl_cam.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ehci.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ehci_pci.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ehcivar.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/hid.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_aue.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_axe.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_cdce.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_cue.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_kue.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_rue.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_rum.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_udav.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/if_ural.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ohci.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ohcivar.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/sl811hs.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/slhci_pccard.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uark.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ubsa.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ubser.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ucom.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/udbp.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ufm.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ufoma.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uftdi.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uhci.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uhcivar.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uhid.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uhub.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uipaq.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ukbd.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ulpt.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/umass.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/umct.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/umodem.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/ums.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uplcom.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/urio.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb_mem.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb_port.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb_quirks.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usb_subr.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usbdi.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usbdi_util.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/usbdivar.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uscanner.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uvisor.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/usb/uvscom.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/dev/wds/wd7000.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_fifoops.c#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_fifoops.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_subr.c#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_uma.c#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_uma.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_vfsops.c#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_vnops.c#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/fs/tmpfs/tmpfs_vnops.h#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/geom/part/g_part.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/geom/part/g_part.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/geom/part/g_part_mbr.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/conf/GENERIC#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/cpufreq/smist.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/i386/trap.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/isa/clock.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/xbox/xboxfb.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/ia64/conf/GENERIC#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_conf.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_descrip.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_fork.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_malloc.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_ntptime.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_priv.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_resource.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/sched_ule.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/subr_unit.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/subr_witness.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_cache.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/modules/Makefile#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/modules/slhci/Makefile#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/modules/tmpfs/Makefile#1 branch .. //depot/projects/soc2007/rdivacky/linux_at/sys/net/bpf.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/net80211/ieee80211_proto.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/igmp.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/in.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/ip_dummynet.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/ip_dummynet.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/ip_fw2.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_asconf.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_asconf.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_auth.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_bsd_addr.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_constants.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_indata.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_indata.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_input.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_lock_bsd.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_os_bsd.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_output.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_pcb.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_pcb.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_peeloff.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_sysctl.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_sysctl.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_timer.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_uio.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctp_usrreq.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctputil.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/sctputil.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/tcp_usrreq.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet/udp_usrreq.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/ah_output.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/in6_ifattach.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/ip6_output.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/raw_ip6.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/sctp6_usrreq.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netinet6/udp6_output.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netipsec/ipsec_input.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netipsec/key.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netipx/ipx.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netsmb/smb_smb.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/netsmb/smb_trantcp.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/nfsserver/nfs_serv.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/pc98/conf/GENERIC#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/pci/if_ste.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/pci/ncr.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/powerpc/conf/GENERIC#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/powerpc/include/vmparam.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/rpc/rpcclnt.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/security/audit/audit.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/security/audit/audit_syscalls.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/security/audit/audit_trigger.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/security/mac_bsdextended/mac_bsdextended.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/conf/GENERIC#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/include/smp.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pci.c#2 delete .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pci.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pci_if.m#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pcib.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pcib_subr.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/ofw_pcibus.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/psycho.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/pci/psychovar.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/sbus/sbus.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/sparc64/eeprom.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/sparc64/machdep.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/sparc64/mp_machdep.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sparc64/sparc64/rtc.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sun4v/conf/GENERIC#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sun4v/include/trap.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sun4v/sun4v/machdep.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sun4v/sun4v/pmap.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sun4v/sun4v/trap.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/priv.h#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/tree.h#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_contig.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_fault.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_mmap.c#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_object.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_page.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_page.h#3 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_pageout.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_pageq.c#4 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_phys.c#2 integrate .. //depot/projects/soc2007/rdivacky/linux_at/sys/vm/vm_zeroidle.c#4 integrate Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/amd64/busdma_machdep.c#4 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/busdma_machdep.c,v 1.82 2007/06/11 17:57:24 mjacob Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/busdma_machdep.c,v 1.83 2007/06/17 04:21:58 mjacob Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -841,7 +841,7 @@ bus_dmamap_callback2_t *callback, void *callback_arg, int flags) { - bus_addr_t lastaddr; + bus_addr_t lastaddr = 0; int nsegs, error, first, i; bus_size_t resid; struct iovec *iov; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/amd64/pmap.c#3 (text+ko) ==== @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.587 2007/05/31 22:52:10 attilio Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.588 2007/06/17 04:27:45 mjacob Exp $"); /* * Manages physical address maps. @@ -1645,6 +1645,9 @@ continue; pmap->pm_stats.resident_count--; pte = pmap_pte_pde(pmap, va, &ptepde); + if (pte == NULL) { + panic("null pte in pmap_collect"); + } tpte = pte_load_clear(pte); KASSERT((tpte & PG_W) == 0, ("pmap_collect: wired pte %#lx", tpte)); @@ -2060,6 +2063,9 @@ PMAP_LOCK(pmap); pmap->pm_stats.resident_count--; pte = pmap_pte_pde(pmap, pv->pv_va, &ptepde); + if (pte == NULL) { + panic("null pte in pmap_remove_all"); + } tpte = pte_load_clear(pte); if (tpte & PG_W) pmap->pm_stats.wired_count--; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/conf/GENERIC#4 (text+ko) ==== @@ -16,7 +16,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.481 2007/06/12 02:24:30 yongari Exp $ +# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.482 2007/06/14 17:14:25 delphij Exp $ cpu HAMMER ident GENERIC @@ -30,6 +30,7 @@ options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols +options SCTP # Stream Transmission Control Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/isa/clock.c#3 (text+ko) ==== @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/isa/clock.c,v 1.231 2007/06/04 18:25:02 dwmalone Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/isa/clock.c,v 1.232 2007/06/15 22:58:14 peter Exp $"); /* * Routines to handle clock hardware. @@ -53,12 +53,15 @@ #include <sys/systm.h> #include <sys/bus.h> #include <sys/clock.h> +#include <sys/conf.h> +#include <sys/fcntl.h> #include <sys/lock.h> #include <sys/kdb.h> #include <sys/mutex.h> #include <sys/proc.h> #include <sys/time.h> #include <sys/timetc.h> +#include <sys/uio.h> #include <sys/kernel.h> #include <sys/limits.h> #include <sys/module.h> @@ -931,4 +934,100 @@ DRIVER_MODULE(attimer, isa, attimer_driver, attimer_devclass, 0, 0); DRIVER_MODULE(attimer, acpi, attimer_driver, attimer_devclass, 0, 0); + +/* + * Linux-style /dev/nvram driver + * + * cmos ram starts at bytes 14 through 128, for a total of 114 bytes. + * bytes 16 through 31 are checksummed at byte 32. + * Unlike Linux, you have to take care of the checksums yourself. + * The driver exposes byte 14 as file offset 0. + */ + +#define NVRAM_FIRST RTC_DIAG /* 14 */ +#define NVRAM_LAST 128 + +static d_open_t nvram_open; +static d_read_t nvram_read; +static d_write_t nvram_write; + +static struct cdev *nvram_dev; + +static struct cdevsw nvram_cdevsw = { + .d_version = D_VERSION, + .d_flags = D_NEEDGIANT, + .d_open = nvram_open, + .d_read = nvram_read, + .d_write = nvram_write, + .d_name = "nvram", +}; + +static int +nvram_open(struct cdev *dev __unused, int flags, int fmt __unused, + struct thread *td) +{ + int error = 0; + + if (flags & FWRITE) + error = securelevel_gt(td->td_ucred, 0); + + return (error); +} + +static int +nvram_read(struct cdev *dev, struct uio *uio, int flags) +{ + int nv_off; + u_char v; + int error = 0; + + while (uio->uio_resid > 0 && error == 0) { + nv_off = uio->uio_offset + NVRAM_FIRST; + if (nv_off < NVRAM_FIRST || nv_off >= NVRAM_LAST) + return (0); /* Signal EOF */ + /* Single byte at a time */ + v = rtcin(nv_off); + error = uiomove(&v, 1, uio); + } + return (error); + +} + +static int +nvram_write(struct cdev *dev, struct uio *uio, int flags) +{ + int nv_off; + u_char v; + int error = 0; + + while (uio->uio_resid > 0 && error == 0) { + nv_off = uio->uio_offset + NVRAM_FIRST; + if (nv_off < NVRAM_FIRST || nv_off >= NVRAM_LAST) + return (0); /* Signal EOF */ + /* Single byte at a time */ + error = uiomove(&v, 1, uio); + writertc(nv_off, v); + } + return (error); +} + +static int +nvram_modevent(module_t mod __unused, int type, void *data __unused) +{ + switch (type) { + case MOD_LOAD: + nvram_dev = make_dev(&nvram_cdevsw, 0, + UID_ROOT, GID_KMEM, 0640, "nvram"); + break; + case MOD_UNLOAD: + case MOD_SHUTDOWN: + destroy_dev(nvram_dev); + break; + default: + return (EOPNOTSUPP); + } + return (0); +} +DEV_MODULE(nvram, nvram_modevent, NULL); + #endif /* DEV_ISA */ ==== //depot/projects/soc2007/rdivacky/linux_at/sys/arm/include/intr.h#2 (text+ko) ==== @@ -32,14 +32,16 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/arm/include/intr.h,v 1.6 2007/02/23 12:18:27 piso Exp $ + * $FreeBSD: src/sys/arm/include/intr.h,v 1.7 2007/06/16 15:03:33 cognet Exp $ * */ #ifndef _MACHINE_INTR_H_ #define _MACHINE_INTR_H_ -#ifdef CPU_ARM9 +#ifdef CPU_XSCALE_81342 +#define NIRQ 128 +#elif defined(CPU_ARM9) #define NIRQ 64 #else #define NIRQ 32 ==== //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/common/main.c#2 (text+ko) ==== @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/boot/ofw/common/main.c,v 1.8 2006/11/02 00:26:45 marcel Exp $"); +__FBSDID("$FreeBSD: src/sys/boot/ofw/common/main.c,v 1.9 2007/06/17 00:17:15 marius Exp $"); #include <stand.h> #include "openfirm.h" @@ -41,7 +41,6 @@ extern char bootprog_date[]; extern char bootprog_maker[]; -phandle_t chosen; u_int32_t acells; static char bootargs[128]; @@ -64,24 +63,22 @@ uint64_t memsize(void) { - ihandle_t meminstance; - phandle_t memory; + phandle_t memoryp; struct ofw_reg reg[4]; struct ofw_reg2 reg2[8]; int i; u_int64_t sz, memsz; - OF_getprop(chosen, "memory", &meminstance, sizeof(meminstance)); - memory = OF_instance_to_package(meminstance); + memoryp = OF_instance_to_package(memory); if (acells == 1) { - sz = OF_getprop(memory, "reg", ®, sizeof(reg)); + sz = OF_getprop(memoryp, "reg", ®, sizeof(reg)); sz /= sizeof(struct ofw_reg); for (i = 0, memsz = 0; i < sz; i++) memsz += reg[i].size; } else if (acells == 2) { - sz = OF_getprop(memory, "reg", ®2, sizeof(reg2)); + sz = OF_getprop(memoryp, "reg", ®2, sizeof(reg2)); sz /= sizeof(struct ofw_reg2); for (i = 0, memsz = 0; i < sz; i++) @@ -107,7 +104,6 @@ OF_init(openfirm); root = OF_finddevice("/"); - chosen = OF_finddevice("/chosen"); acells = 1; OF_getprop(root, "#address-cells", &acells, sizeof(acells)); ==== //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/Makefile#2 (text+ko) ==== @@ -1,11 +1,11 @@ -# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.10 2006/10/09 04:43:06 kmacy Exp $ +# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.11 2007/06/17 00:17:15 marius Exp $ LIB= ofw INTERNALLIB= SRCS= devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \ ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ - ofw_time.c openfirm.c openfirm_mmu.c + ofw_time.c openfirm.c CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ==== //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/ofw_console.c#2 (text+ko) ==== @@ -27,15 +27,13 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_console.c,v 1.11 2005/10/20 10:39:09 marius Exp $"); +__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_console.c,v 1.12 2007/06/17 00:17:15 marius Exp $"); #include <sys/types.h> #include "bootstrap.h" #include "openfirm.h" -int console; - static void ofw_cons_probe(struct console *cp); static int ofw_cons_init(int); void ofw_cons_putchar(int); @@ -59,10 +57,7 @@ static void ofw_cons_probe(struct console *cp) { - phandle_t chosen; - if ((chosen = OF_finddevice("/chosen")) == -1) - OF_exit(); OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); cp->c_flags |= C_PRESENTIN|C_PRESENTOUT; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/ofw_net.c#2 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_net.c,v 1.10 2005/03/02 20:12:27 marius Exp $"); +__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/ofw_net.c,v 1.11 2007/06/17 00:17:15 marius Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -179,12 +179,11 @@ static void ofwn_init(struct iodesc *desc, void *machdep_hint) { - phandle_t chosen, netdev; + phandle_t netdev; char path[64]; char *ch; int pathlen; - chosen = OF_finddevice("/chosen"); pathlen = OF_getprop(chosen, "bootpath", path, 64); if ((ch = index(path, ':')) != NULL) *ch = '\0'; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/boot/ofw/libofw/openfirm.c#2 (text+ko) ==== @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/openfirm.c,v 1.13 2006/10/09 04:43:07 kmacy Exp $"); +__FBSDID("$FreeBSD: src/sys/boot/ofw/libofw/openfirm.c,v 1.15 2007/06/17 00:17:15 marius Exp $"); #include <machine/stdarg.h> @@ -66,39 +66,24 @@ int (*openfirmware)(void *); +phandle_t chosen; ihandle_t mmu; ihandle_t memory; -/* Initialiaser */ +/* Initialiser */ void OF_init(int (*openfirm)(void *)) { - phandle_t chosen; openfirmware = openfirm; - chosen = OF_finddevice("/chosen"); - OF_getprop(chosen, "memory", &memory, sizeof(memory)); - if (memory == 0) - panic("failed to get memory ihandle"); - OF_getprop(chosen, "mmu", &mmu, sizeof(mmu)); - if (mmu == 0) - panic("failed to get mmu ihandle"); -} - -phandle_t -OF_chosennode(void) -{ - static phandle_t chosen; - - if (chosen) - return (chosen); - - if ((chosen = OF_finddevice("/chosen")) == -1) - OF_exit(); - - return (chosen); + if ((chosen = OF_finddevice("/chosen")) == -1) + OF_exit(); + if (OF_getprop(chosen, "memory", &memory, sizeof(memory)) == -1) + OF_exit(); + if (OF_getprop(chosen, "mmu", &mmu, sizeof(mmu)) == -1) + OF_exit(); } /* @@ -110,23 +95,21 @@ OF_test(char *name) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t service; - cell_t missing; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t service; + cell_t missing; } args = { (cell_t)"test", 1, 1, - 0, - 0 }; args.service = (cell_t)name; if (openfirmware(&args) == -1) - return -1; - return (int)args.missing; + return (-1); + return (args.missing); } /* Return firmware millisecond count. */ @@ -134,19 +117,18 @@ OF_milliseconds() { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t ms; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t ms; } args = { (cell_t)"milliseconds", 0, 1, - 0 }; - + openfirmware(&args); - return (int)args.ms; + return (args.ms); } /* @@ -158,23 +140,21 @@ OF_peer(phandle_t node) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t node; - cell_t next; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t node; + cell_t next; } args = { (cell_t)"peer", 1, 1, - 0, - 0 }; - args.node = (u_int)node; + args.node = node; if (openfirmware(&args) == -1) - return -1; - return (phandle_t)args.next; + return (-1); + return (args.next); } /* Return the first child of this node or 0. */ @@ -182,23 +162,21 @@ OF_child(phandle_t node) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t node; - cell_t child; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t node; + cell_t child; } args = { (cell_t)"child", 1, 1, - 0, - 0 }; - args.node = (u_int)node; + args.node = node; if (openfirmware(&args) == -1) - return -1; - return (phandle_t)args.child; + return (-1); + return (args.child); } /* Return the parent of this node or 0. */ @@ -206,23 +184,21 @@ OF_parent(phandle_t node) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t node; - cell_t parent; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t node; + cell_t parent; } args = { (cell_t)"parent", 1, 1, - 0, - 0 }; - args.node = (u_int)node; + args.node = node; if (openfirmware(&args) == -1) - return -1; - return (phandle_t)args.parent; + return (-1); + return (args.parent); } /* Return the package handle that corresponds to an instance handle. */ @@ -230,23 +206,21 @@ OF_instance_to_package(ihandle_t instance) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t instance; - cell_t package; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t instance; + cell_t package; } args = { (cell_t)"instance-to-package", 1, 1, - 0, - 0 }; - - args.instance = (u_int)instance; + + args.instance = instance; if (openfirmware(&args) == -1) - return -1; - return (phandle_t)args.package; + return (-1); + return (args.package); } /* Get the length of a property of a package. */ @@ -254,26 +228,23 @@ OF_getproplen(phandle_t package, char *propname) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t package; - cell_t propname; - cell_t proplen; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t package; + cell_t propname; + cell_t proplen; } args = { (cell_t)"getproplen", 2, 1, - 0, - 0, - 0 }; - args.package = (u_int)package; + args.package = package; args.propname = (cell_t)propname; if (openfirmware(&args) == -1) - return -1; - return (int)args.proplen; + return (-1); + return (args.proplen); } /* Get the value of a property of a package. */ @@ -281,32 +252,27 @@ OF_getprop(phandle_t package, char *propname, void *buf, int buflen) { static struct { - cell_t name; - cell_t nargs; - cell_t nreturns; - cell_t package; - cell_t propname; - cell_t buf; - cell_t buflen; - cell_t size; + cell_t name; + cell_t nargs; + cell_t nreturns; + cell_t package; + cell_t propname; + cell_t buf; + cell_t buflen; + cell_t size; } args = { (cell_t)"getprop", 4, 1, - 0, - 0, - 0, - 0, - 0 }; - - args.package = (u_int)package; + + args.package = package; args.propname = (cell_t)propname; args.buf = (cell_t)buf; - args.buflen = (u_int)buflen; + args.buflen = buflen; >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706211042.l5LAg2vp032741>