The NetBSD Project

CVS log for src/sys/arch/sandpoint/sandpoint/satmgr.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:08 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 17 14:50:11 2021 UTC (3 years, 1 month ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.29: +8 -4 lines
Diff to previous 1.29 (colored)

Switch to intr_establish_xname().

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 4 15:36:22 2021 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +3 -5 lines
Diff to previous 1.28 (colored)

Use sel{record,remove}_knote().

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:27 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 25 08:12:37 2017 UTC (6 years, 5 months ago) by maya
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, 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
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.26: +6 -3 lines
Diff to previous 1.26 (colored)

Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- 	{ a, b, c, d
+ 	{
+ 	.f_isfd = a,
+ 	.f_attach = b,
+ 	.f_detach = c,
+ 	.f_event = d,
};

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:34 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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, nick-nhusb, netbsd-8-base, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:25 2014 UTC (10 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.24: +12 -3 lines
Diff to previous 1.24 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 19 15:58:19 2013 UTC (11 years, 2 months ago) by phx
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.23: +5 -2 lines
Diff to previous 1.23 (colored)

Implement real hardware power-off for DSM-G600 using the "ZWC" command.
It seems that not all microcontrollers support the command, though, so
the old solution to flash the power LED is still present as a fallback.

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 15 02:14:13 2012 UTC (11 years, 11 months ago) by nisimura
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)


A temporaly fix to avoid a lockup by KBT4 DISP button.  Not sure
the real fix.  Curse on the every poorly written engineering
documents on Earth.

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 11 21:40:49 2012 UTC (11 years, 11 months ago) by nisimura
Branch: MAIN
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (colored)


A temporary solution to have KURO-BOX/T4 two way "dialogue" style
sat protocol. Need more work for robustness. Unbreak the previous
commit made by accident.

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 11 21:12:34 2012 UTC (11 years, 11 months ago) by nisimura
Branch: MAIN
Changes since 1.20: +122 -131 lines
Diff to previous 1.20 (colored)


make sure to have the correct I2C TOD attached for KURO-BOX/T4.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 24 10:09:06 2012 UTC (11 years, 11 months ago) by nisimura
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.19: +6 -4 lines
Diff to previous 1.19 (colored)


Quick fixes to make KURO-BOX/T4 "miconv2" power management work.
The patch was supplied by mef@.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 16 14:30:42 2012 UTC (12 years ago) by nisimura
Branch: MAIN
Changes since 1.18: +100 -7 lines
Diff to previous 1.18 (colored)


Preliminary support of TS-TGL/KBT4 power down operation.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 9 13:26:37 2012 UTC (12 years ago) by nisimura
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)


Change to use "kurot4" product name for Terastation TGL and
KuroBox/T4.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Apr 8 12:11:57 2012 UTC (12 years ago) by nisimura
Branch: MAIN
Changes since 1.16: +9 -1 lines
Diff to previous 1.16 (colored)


Add an entry for "miconv2" satellite processor control.  The button
press event handler remains unimplemented for now.  Use /dev/satmgr
to talk the processor.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 22 22:56:44 2012 UTC (12 years, 1 month ago) by nisimura
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.15: +11 -11 lines
Diff to previous 1.15 (colored)


- fix an error which prevents satmgr from sending NUL bytes.
- a bit cosmetic change for IOMEGA multibyte control sequence.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jan 23 16:22:58 2012 UTC (12 years, 2 months ago) by phx
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Insert some missing aprint_naive().

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 29 10:27:36 2011 UTC (12 years, 3 months ago) by phx
Branch: MAIN
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

Replaced 16 by I8259_ICU in intr_establish().

Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 12 23:57:55 2011 UTC (12 years, 5 months ago) by phx
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.12: +201 -15 lines
Diff to previous 1.12 (colored)

Add Iomega support (init, reboot, poweroff).
Make new sysctl-nodes for Iomega fan control in machdep.satmgr.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 1 19:16:06 2011 UTC (12 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

#include <sys/bus.h> instead of <machine/bus.h>.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 19 18:16:03 2011 UTC (13 years ago) by phx
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.10: +9 -7 lines
Diff to previous 1.10 (colored)

It is probably better to flash the power LED after power-off on a DSM-G600,
to make the user aware that he needs to remove power manually.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 17 14:05:59 2011 UTC (13 years ago) by phx
Branch: MAIN
Changes since 1.9: +14 -2 lines
Diff to previous 1.9 (colored)

DSM-G600: Turn off all LEDs when shutting down, to indicate the device
can be switched off.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 10 16:30:32 2011 UTC (13 years ago) by phx
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Missing comma. Make it compile again.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 8 14:09:24 2011 UTC (13 years ago) by nisimura
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Minor format knots; sort a model list in alphabetical order and adjust
spacing.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 26 22:36:34 2011 UTC (13 years ago) by phx
Branch: MAIN
Changes since 1.6: +36 -9 lines
Diff to previous 1.6 (colored)

Add QNAP reboot, reset and button handling functions.
Introduced an optional init function per board, which can set LEDs and other
special hardware to an initial state using the satellite processor.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 12 16:49:16 2011 UTC (13 years, 1 month ago) by phx
Branch: MAIN
Changes since 1.5: +12 -23 lines
Diff to previous 1.5 (colored)

The DSM-G600's satellite microcontroller provides no possibility to reboot
or powerdown the board, so we can only support reboot by falling back to
a default reboot procedure.
The default procedure will turn off interrupts and the MMU, then jump
through the firmware's reset vector (0xfff00100).

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 9 20:33:57 2011 UTC (13 years, 1 month ago) by phx
Branch: MAIN
Changes since 1.4: +44 -5 lines
Diff to previous 1.4 (colored)

DLink DSM-G600 button handling.
There are no commands to reboot or poweroff a G600, though.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 24 19:32:34 2011 UTC (13 years, 1 month ago) by phx
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.3: +18 -15 lines
Diff to previous 1.3 (colored)

Print "interrupting at". Improved style guide conformance.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 10 13:54:45 2011 UTC (13 years, 2 months ago) by nisimura
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-base
Changes since 1.2: +73 -20 lines
Diff to previous 1.2 (colored)

- add D-Link EPIC defition to pci_machdep.c
- change the way to reboot/pwroff to make satmgr.c more flexible for
  a multiple byte sat protocol.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 3 10:44:21 2010 UTC (13 years, 10 months ago) by phx
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: yamt-nfs-mp, uebayasi-xip, jruoho-x86intr, bouyer-quota2
Changes since 1.1: +42 -21 lines
Diff to previous 1.1 (colored)

Applied a patch by Toru Nishimura:
Fixed kmutex usage error and replaced tsleep by cv_waitsig.
Now "cat /dev/satmgr" no longer panics when pressing a button.

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 29 22:47:02 2010 UTC (13 years, 10 months ago) by phx
Branch: MAIN
Branch point for: rmind-uvmplock

'satmgr' device for communicating with the satellite processor found on many
MPC824x-based systems. It registers the power button to sysmon and sets
a reboot/shutdown callback for cpu_reboot(). Other functions can be controlled
through /dev/satmgr.
Currently there is support for KuroBox and Synology, which will be extended
as soon more platforms have been reasearched.
This patch was submitted by Toru Nishimura.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>