The NetBSD Project

CVS log for src/sys/arch/xen/xen/Attic/pciide_machdep.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / xen / xen

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.18.14.1
Sun Dec 3 11:36:51 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.18: +2 -2 lines
update from HEAD

Revision 1.21
Sat Nov 4 15:24:42 2017 UTC (7 years, 1 month ago) by cherry
Branches: MAIN
CVS tags: thorpej-futex-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, isaki-audio2-base, isaki-audio2, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
FILE REMOVED
Changes since revision 1.20: +2 -2 lines
Remove bitrotted xen specific versions of pci, pciide machdep related code.

Use the common x86/ code instead.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Nov 4 14:56:48 2017 UTC (7 years, 1 month ago) by cherry
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Retire xen/x86/intr.c and use the new xen specific glue in x86/x86/intr.c

The purpose of this change is to expose the x86/include/intr.h API
to drivers. Specifically the following functions:

   void *intr_establish_xname(...);
   void *intr_establish(...);
   void intr_disestablish(...);

while maintaining the old API from xen/include/evtchn.h, specifically
the following functions:

    int event_set_handler(...);
    int event_remove_handler(...);

This is so that if things break, we can keep using the old API until
everything stabilises. This is a stepping stone towards getting the
actual XEN event callback path rework code in place - which can be
done opaquely behind the intr.h API - NetBSD/XEN specific drivers that
have been ported to the intr.h API should then work without
significant further modifications.

Revision 1.18.32.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:57 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +12 -12 lines
Sync with HEAD

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 16 06:14:25 2017 UTC (7 years, 4 months ago) by cherry
Branches: perseant-stdc-iso10646
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.1: +127 -0 lines
2739767

Revision 1.19.2.1
Sun Jul 16 06:14:24 2017 UTC (7 years, 4 months ago) by cherry
Branches: perseant-stdc-iso10646
FILE REMOVED
Changes since revision 1.19: +0 -127 lines
file pciide_machdep.c was added on branch perseant-stdc-iso10646 on 2017-07-16 06:14:25 +0000

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jul 16 06:14:24 2017 UTC (7 years, 4 months ago) by cherry
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, nick-nhusb-base-20170825
Branch point for: perseant-stdc-iso10646
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +12 -12 lines
Remove the xen specific interrupt type for the x86 intr_handle_t
For this to work, we use the evtchn.c:get_pirq_to_evtchn() glue
function to make things easier.

Revision 1.17.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:12 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -3 lines
Sync with HEAD.

Revision 1.11.10.4: download - view: text, markup, annotated - select for diffs
Mon May 2 22:49:59 2011 UTC (13 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.11.10.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.10.3: +3 -3 lines
Sync with head.

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:34 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -3 lines
sync with head

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Apr 4 20:37:55 2011 UTC (13 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, khorben-n900, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncq-base, jdolecek-ncq, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'

Revision 1.11.10.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:22 2010 UTC (14 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.11.10.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.10.2: +3 -3 lines
Sync with HEAD

Revision 1.11.14.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:45 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +8 -6 lines
sync to netbsd-5

Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:10 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9.4.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.2: +3 -3 lines
sync with head

Revision 1.11.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 22 04:36:52 2010 UTC (14 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.11.6.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.6.1: +3 -3 lines
Pull up following revision(s) (requested by bouyer in ticket #1299):
	sys/arch/xen/xen/isa_machdep.c: revision 1.23
	sys/arch/xen/xen/pciide_machdep.c: revision 1.17
Enlarge temporary buffer, so that event counter's name is not truncated
for ioapic interrupts.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Feb 6 17:48:54 2010 UTC (14 years, 10 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Enlarge temporary buffer, so that event counter's name is not truncated
for ioapic interrupts.

Revision 1.11.10.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:47 2009 UTC (15 years, 1 month ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.11.10.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.10.1: +3 -14 lines
Sync with HEAD.

Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 4 00:03:20 2009 UTC (15 years, 2 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -5 lines
Pull up following revision(s) (requested by bouyer in ticket #1054):
	sys/arch/xen/x86/intr.c: revision 1.22
	sys/arch/xen/xen/isa_machdep.c: revision 1.14
	sys/arch/xen/xen/pci_intr_machdep.c: revision 1.9
	sys/arch/xen/xen/pciide_machdep.c: revision 1.12
When ioapic is used, for ISA interrupts, reuse the legacy ISA interrupt
number instead of allocating a new one. Force allocating a new interrupt number
for PCI devices, as the number stored in the PCI interrupt register
may be wrong.
This should help using a pciide controller in compat mode or ISA devices
in a non-0 domain.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:56 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.1: +3 -14 lines
sync with head.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jul 29 12:02:09 2009 UTC (15 years, 4 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, matt-premerge-20091211
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -14 lines
remove Xen2 support.
ok bouyer@

Revision 1.11.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:50 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -11 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:14 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +15 -16 lines
sync with head.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri May 1 09:43:11 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, jymxensuspend-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
struct device * -> device_t

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:01 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +10 -11 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 16 06:18:32 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -8 lines
ansify function definitions

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Mar 14 14:46:08 2009 UTC (15 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Mar 10 17:21:57 2009 UTC (15 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -5 lines
When ioapic is used, for ISA interrupts, reuse the legacy ISA interrupt
number instead of allocating a new one. Force allocating a new interrupt number
for PCI devices, as the number stored in the PCI interrupt register
may be wrong.
This should help using a pciide controller in compat mode or ISA devices
in a non-0 domain.

Revision 1.8.14.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:14 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.8.14.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.14.1: +5 -5 lines
Sync with HEAD.

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:39 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +7 -7 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:37:57 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +7 -7 lines
Sync with head.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jul 3 15:44:19 2008 UTC (16 years, 5 months ago) by drochner
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64, jym-xensuspend
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
split device/softc for ioapic

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jul 3 14:02:25 2008 UTC (16 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -7 lines
Remove "struct device" from "struct pic", where it was only real
for ioapics and faked up for others. Add it to "struct ioapic_softc"
for now, until device/softc get split.
This required all typecasts between "struct pic" and "struct ioapic_softc"
to be replaced, I hope I got them all.
functionally tested on i386, compile-tested on xen, untested on amd64

Revision 1.6.18.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:18 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +58 -7 lines
Sync with netbsd-4.

Revision 1.8.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:55 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
Sync with HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Apr 6 07:24:20 2008 UTC (16 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
use aprint_*_dev and device_xname

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 1 05:41:47 2008 UTC (16 years, 10 months ago) by riz
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +58 -7 lines
Pull up following revision(s) (requested by bouyer in ticket #1001):
	sys/arch/xen/xen/isa_machdep.c: revision 1.9
	sys/arch/xen/xen/pciide_machdep.c: revision 1.7
Properly setup the IO APIC for ISA and pciide compat interrupts too.
Makes ACPI kernels works again with pciide controllers in compat mode.

Revision 1.6.28.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:50:20 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +59 -8 lines
sync with HEAD

Revision 1.6.34.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:18:27 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.6.34.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.34.1: +3 -3 lines
Sync with HEAD.

Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:27:22 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.2: +59 -8 lines
sync with head

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:40:45 2007 UTC (17 years ago) by ad
Branches: vmlocking
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +59 -8 lines
Sync with HEAD.

Revision 1.6.26.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:28 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.6.26.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.26.1: +3 -3 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Nov 22 16:17:08 2007 UTC (17 years ago) by bouyer
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.

Revision 1.6.26.1: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:53:44 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +58 -7 lines
Sync with HEAD.

Revision 1.6.34.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:10 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +58 -7 lines
Sync with HEAD.

Revision 1.6.32.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:34:56 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.6.32.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.32.1: +58 -7 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Nov 18 18:44:17 2007 UTC (17 years ago) by bouyer
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +58 -7 lines
Properly setup the IO APIC for ISA and pciide compat interrupts too.
Makes ACPI kernels works again with pciide controllers in compat mode.

Revision 1.6.32.1: download - view: text, markup, annotated - select for diffs
Fri Nov 16 17:18:04 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Initial domain0 support for xenamd64. The kernel boots multiuser, but
xen tools have not been tried yet.
In this process, cleanup some more the page table bootstrap, and properly
handle event counters for soft interrupts.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:25 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +6 -3 lines
sync with head.

Revision 1.5.18.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:29:39 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +6 -3 lines
Sync with head.

Revision 1.5.20.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:20 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +6 -3 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Sep 28 18:53:16 2006 UTC (18 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-base-1, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: wrstuden-fixsa, vmlocking, netbsd-4, mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -3 lines
Add Xen3 support for ACPI and/or MPBIOS + IOAPIC. To help with this, physical
CPUs are now configured on mainbus only in dom0, and only to know about
their APIC id. virtual CPUs are attached to hypervisor as:
vcpu* at hypervisor?
and this is what's used as curcpu(). The kernel config files needs to be
updated for this, see XEN3_DOM0 or XEN3_DOMU for examples.
XEN3_DOM0 now has acpi, MPBIOS and ioapic by default.
Note that a Xen dom0 kernel doens't have access to the lapic.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:58:23 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -3 lines
sync with head.

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:48 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +5 -3 lines
sync with head.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 15 22:09:52 2006 UTC (18 years, 10 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -3 lines
Snapshot of work in progress on NetBSD port to Xen3:
- kernel (both dom0 and domU) boot, console is functionnal and it can starts
  software from a ramdisk
- there is no driver front-end expect console for domU yet.
- dom0 can probe devices and ex(4) work when Xen3 is booted without acpi
  and apic support. But the on-board IDE doens't get interrupts.
  The PCI code still needs work (it's hardcoded to mode 1). Some of this
  code should be shared with ../x86
  The physical insterrupt code needs to get MPBIOS and ACPI support, and
  do interrupt routing to properly interract with Xen.
To enable Xen-3.0 support, add
options XEN3
to your kernel config file (this will disable Xen2 support)
Changes affecting Xen-2.0 support (no functionnal changes intended):
- get more constants from genassym for assembly code
- remove some unneeded registers move from start()
- map the shared info page from start(), and remove the pte = 0xffffffff hack
- vector.S: in hypervisor_callback() make sure %esi points to
  HYPERVISOR_shared_info before accessing the info page. Remplace some
  hand-written assembly with the equivalent macro defined in frameasm.h
- more debug code, dissabled by default.

while here added my copyright on some files I worked on in 2005.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:19:50 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
merge ktrace-lwp.

Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:00:34 2005 UTC (19 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.2: +5 -5 lines
Sync with HEAD. Here we go again...

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:30 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +83 -0 lines
sync with -current

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 28 10:18:56 2005 UTC (19 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +5 -5 lines
Pull up revision 1.3 (requested by bouyer in ticket #192):
Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq,
including soft interrupt, and this is way too low in some use (lots of domains,
or domains with lots of xennet, or even hardware with lots of devices at
different interrupts).
Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and
one per-IPL (so the same handler is now in 2 lists). In the common case were
an event is received at low IPL, we can call the handlers quickly (there
is usually only one handler per event, unless the event is mapped to a
physical interrupt and this interrupt is shared by different devices).
Deffered events and software interrupts are handled by a bitmask (as before)
with one bit per IPL. When one IPL has an event pending all handlers for
this IPL will be called.
With this change, it is now possible to have all the 1024 events active.
While here, handle debug event in a special way: the handler is always called,
regardless of the current IPL. Make the handler print usefull informations
about events and IPL states.
Also remove code not used on Xen in files inherited from the x86 port.

Revision 1.3.2.1
Sat Apr 16 22:49:38 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
FILE REMOVED
Changes since revision 1.3: +0 -83 lines
file pciide_machdep.c was added on branch kent-audio2 on 2005-04-29 11:28:30 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Apr 16 22:49:38 2005 UTC (19 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf, kent-audio2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5 lines
Get rid of the event to pseudo-irq mapping. We are limited to 32 pseudo-irq,
including soft interrupt, and this is way too low in some use (lots of domains,
or domains with lots of xennet, or even hardware with lots of devices at
different interrupts).
Based on idea from YAMAMOTO Takashi, keep one list of handler per-event and
one per-IPL (so the same handler is now in 2 lists). In the common case were
an event is received at low IPL, we can call the handlers quickly (there
is usually only one handler per event, unless the event is mapped to a
physical interrupt and this interrupt is shared by different devices).
Deffered events and software interrupts are handled by a bitmask (as before)
with one bit per IPL. When one IPL has an event pending all handlers for
this IPL will be called.
With this change, it is now possible to have all the 1024 events active.

While here, handle debug event in a special way: the handler is always called,
regardless of the current IPL. Make the handler print usefull informations
about events and IPL states.
Also remove code not used on Xen in files inherited from the x86 port.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:29:11 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +83 -0 lines
Sync with HEAD.

Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:26 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +83 -0 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.2.4.1
Wed Mar 9 22:39:21 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.2: +0 -83 lines
file pciide_machdep.c was added on branch ktrace-lwp on 2005-04-01 14:29:11 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Mar 9 22:39:21 2005 UTC (19 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3, ktrace-lwp
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +83 -0 lines
Merge the bouyer-xen2 branch. This add supports for the Xen 2.0 virtual
machine kernel (both privileged and non-privileged domains), and remove support
for the old xen 1.2.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 18 15:09:04 2005 UTC (19 years, 10 months ago) by bouyer
Branches: bouyer-xen2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +83 -0 lines
snapshot of work in progress on physical devices support:
- support pci at hypervisor. Attach one PCI bus for each bus returned by
  PHYSDEVOP_PCI_PROBE_ROOT_BUSES (it looks like xen hides ppb bridges from
  the guest OS).
- implement pci_conf_read()/pci_conf_write() using the appropriate
  PHYSDEVOP_PCI_* calls.
- call PHYSDEVOP_PCI_INITIALISE_DEVICE from pci_intr_map() to make xen
  do interrupts routing if needed, and map the hardware interrupt to
  a xen interrupt.
- add pci and associated devices to files.xen

This is enouth to have IDE controllers work in PIO mode.
TODO: bus_dma support (currently bus_dma won't translate pseudo-physical
      addresses to machine addresses), ISA support, test memory-mapped
      I/O registers.

Revision 1.1
Tue Jan 18 15:09:04 2005 UTC (19 years, 10 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km, bouyer-xen2
FILE REMOVED
file pciide_machdep.c was initially added on branch bouyer-xen2.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>