[MPlayer-dev-eng] [PATCH] -- FreeBSD RTC Support
Michael Johnson
ahze at FreeBSD.org
Sat Dec 25 17:19:30 CET 2004
On Dec 25, 2004, at 10:37 AM, Reimar Döffinger wrote:
> Hi,
>
>> Hi, This patch enables RTC support for FreeBSD.
>> I've personally been using rtc with mplayer for almost a year and
>> it works really well and this has been an option in FreeBSD ports for
>> over 9 months now.
>>
> Does the attached patch work as well?
>
Yes, works great except FreeBSD only has a few functions, it's not as
complete as linux rtc.
ahze at blueheron ~ > cat /usr/local/include/rtc.h
#ifndef RTC_H
#define RTC_H
#define RTCIO_PIE_ON _IO('p', 0x05)
#define RTCIO_IRQP_SET _IO('p', 0x0c)
#ifndef M_WAITOK
#define M_WAITOK 0x0000
#endif
#endif /* RTC_H */
the +int main(void) { return RTCIO_IRQP_READ; } line in
configure will need to be changed
to RTCIO_PIE_ON or RTCIO_IRQP_SET Cheers,
Michael
> Greetings,
> Reimar Döffinger
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list