1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014, Joyent, Inc. All rights reserved.
  25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 # Copyright 2016 Nexenta Systems, Inc.
  29 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  30 #
  31 
  32 include $(SRC)/uts/Makefile.uts
  33 
  34 FILEMODE=644
  35 
  36 #
  37 #       Note that the following headers are present in the kernel but
  38 #       neither installed or shipped as part of the product:
  39 #               cpuid_drv.h:            Private interface for cpuid consumers
  40 #               unix_bb_info.h:         Private interface to kcov
  41 #
  42 
  43 i386_HDRS=                      \
  44         asy.h                   \
  45         fd_debug.h              \
  46         fdc.h                   \
  47         fdmedia.h               \
  48         firmload.h              \
  49         gfx_private.h           \
  50         mouse.h                 \
  51         ucode.h
  52 
  53 sparc_HDRS=                     \
  54         mouse.h                 \
  55         scsi/targets/ssddef.h   \
  56         $(MDESCHDRS)
  57 
  58 # Generated headers
  59 GENHDRS=                        \
  60         priv_const.h            \
  61         priv_names.h            \
  62         usb/usbdevs.h
  63 
  64 CHKHDRS=                        \
  65         acpi_drv.h              \
  66         acct.h                  \
  67         acctctl.h               \
  68         acl.h                   \
  69         acl_impl.h              \
  70         aggr.h                  \
  71         aggr_impl.h             \
  72         aio.h                   \
  73         aio_impl.h              \
  74         aio_req.h               \
  75         aiocb.h                 \
  76         ascii.h                 \
  77         asynch.h                \
  78         atomic.h                \
  79         attr.h                  \
  80         audio.h                 \
  81         audioio.h               \
  82         autoconf.h              \
  83         auxv.h                  \
  84         auxv_386.h              \
  85         auxv_SPARC.h            \
  86         avl.h                   \
  87         avl_impl.h              \
  88         bitmap.h                \
  89         bitset.h                \
  90         bl.h                    \
  91         blkdev.h                \
  92         bofi.h                  \
  93         bofi_impl.h             \
  94         bpp_io.h                \
  95         bootstat.h              \
  96         brand.h                 \
  97         buf.h                   \
  98         bufmod.h                \
  99         bustypes.h              \
 100         byteorder.h             \
 101         callb.h                 \
 102         callo.h                 \
 103         cap_util.h              \
 104         cpucaps.h               \
 105         cpucaps_impl.h          \
 106         ccompile.h              \
 107         cdio.h                  \
 108         cladm.h                 \
 109         class.h                 \
 110         clconf.h                \
 111         clock_impl.h            \
 112         cmlb.h                  \
 113         cmn_err.h               \
 114         compress.h              \
 115         condvar.h               \
 116         condvar_impl.h          \
 117         conf.h                  \
 118         consdev.h               \
 119         console.h               \
 120         consplat.h              \
 121         vt.h                    \
 122         vtdaemon.h              \
 123         kd.h                    \
 124         contract.h              \
 125         contract_impl.h         \
 126         copyops.h               \
 127         core.h                  \
 128         corectl.h               \
 129         cpc_impl.h              \
 130         cpc_pcbe.h              \
 131         cpr.h                   \
 132         cpupart.h               \
 133         cpuvar.h                \
 134         crc32.h                 \
 135         cred.h                  \
 136         cred_impl.h             \
 137         crtctl.h                \
 138         cryptmod.h              \
 139         csiioctl.h              \
 140         ctf.h                   \
 141         ctfs.h                  \
 142         ctfs_impl.h             \
 143         ctf_api.h               \
 144         ctype.h                 \
 145         cyclic.h                \
 146         cyclic_impl.h           \
 147         dacf.h                  \
 148         dacf_impl.h             \
 149         damap.h                 \
 150         damap_impl.h            \
 151         dc_ki.h                 \
 152         ddi.h                   \
 153         ddifm.h                 \
 154         ddifm_impl.h            \
 155         ddi_hp.h                \
 156         ddi_hp_impl.h           \
 157         ddi_intr.h              \
 158         ddi_intr_impl.h         \
 159         ddi_impldefs.h          \
 160         ddi_implfuncs.h         \
 161         ddi_obsolete.h          \
 162         ddi_periodic.h          \
 163         ddidevmap.h             \
 164         ddidmareq.h             \
 165         ddimapreq.h             \
 166         ddipropdefs.h           \
 167         dditypes.h              \
 168         debug.h                 \
 169         des.h                   \
 170         devctl.h                \
 171         devcache.h              \
 172         devcache_impl.h         \
 173         devfm.h                 \
 174         devid_cache.h           \
 175         devinfo_impl.h          \
 176         devops.h                \
 177         devpolicy.h             \
 178         devpoll.h               \
 179         dirent.h                \
 180         disp.h                  \
 181         dkbad.h                 \
 182         dkio.h                  \
 183         dklabel.h               \
 184         dl.h                    \
 185         dlpi.h                  \
 186         dld.h                   \
 187         dld_impl.h              \
 188         dld_ioc.h               \
 189         dls.h                   \
 190         dls_mgmt.h              \
 191         dls_impl.h              \
 192         dma_i8237A.h            \
 193         dnlc.h                  \
 194         door.h                  \
 195         door_data.h             \
 196         door_impl.h             \
 197         dtrace.h                \
 198         dtrace_impl.h           \
 199         dumpadm.h               \
 200         dumphdr.h               \
 201         ecppsys.h               \
 202         ecppio.h                \
 203         ecppreg.h               \
 204         ecppvar.h               \
 205         edonr.h                 \
 206         efi_partition.h         \
 207         elf.h                   \
 208         elf_386.h               \
 209         elf_SPARC.h             \
 210         elf_notes.h             \
 211         elf_amd64.h             \
 212         elftypes.h              \
 213         emul64.h                \
 214         emul64cmd.h             \
 215         emul64var.h             \
 216         epm.h                   \
 217         epoll.h                 \
 218         errno.h                 \
 219         errorq.h                \
 220         errorq_impl.h           \
 221         esunddi.h               \
 222         ethernet.h              \
 223         euc.h                   \
 224         eucioctl.h              \
 225         eventfd.h               \
 226         exacct.h                \
 227         exacct_catalog.h        \
 228         exacct_impl.h           \
 229         exec.h                  \
 230         exechdr.h               \
 231         extdirent.h             \
 232         fault.h                 \
 233         fasttrap.h              \
 234         fasttrap_impl.h         \
 235         fbio.h                  \
 236         fbuf.h                  \
 237         fcntl.h                 \
 238         fct.h                   \
 239         fct_defines.h           \
 240         fctio.h                 \
 241         fdbuffer.h              \
 242         fdio.h                  \
 243         feature_tests.h         \
 244         fem.h                   \
 245         file.h                  \
 246         filio.h                 \
 247         flock.h                 \
 248         flock_impl.h            \
 249         fork.h                  \
 250         fss.h                   \
 251         fsspriocntl.h           \
 252         fsid.h                  \
 253         fssnap.h                \
 254         fssnap_if.h             \
 255         fstyp.h                 \
 256         ftrace.h                \
 257         fx.h                    \
 258         fxpriocntl.h            \
 259         gfs.h                   \
 260         gld.h                   \
 261         gldpriv.h               \
 262         group.h                 \
 263         hdio.h                  \
 264         hook.h                  \
 265         hook_event.h            \
 266         hook_impl.h             \
 267         hwconf.h                \
 268         ia.h                    \
 269         iapriocntl.h            \
 270         ibpart.h                \
 271         id32.h                  \
 272         idmap.h                 \
 273         ieeefp.h                \
 274         id_space.h              \
 275         instance.h              \
 276         int_const.h             \
 277         int_fmtio.h             \
 278         int_limits.h            \
 279         int_types.h             \
 280         inttypes.h              \
 281         ioccom.h                \
 282         ioctl.h                 \
 283         ipc.h                   \
 284         ipc_impl.h              \
 285         ipc_rctl.h              \
 286         ipd.h                   \
 287         ipmi.h                  \
 288         isa_defs.h              \
 289         iscsi_authclient.h      \
 290         iscsi_authclientglue.h  \
 291         iscsi_protocol.h        \
 292         jioctl.h                \
 293         kbd.h                   \
 294         kbdreg.h                \
 295         kbio.h                  \
 296         kcpc.h                  \
 297         kdi.h                   \
 298         kdi_impl.h              \
 299         kiconv.h                \
 300         kiconv_big5_utf8.h      \
 301         kiconv_cck_common.h     \
 302         kiconv_cp950hkscs_utf8.h        \
 303         kiconv_emea1.h          \
 304         kiconv_emea2.h          \
 305         kiconv_euckr_utf8.h     \
 306         kiconv_euctw_utf8.h     \
 307         kiconv_gb18030_utf8.h   \
 308         kiconv_gb2312_utf8.h    \
 309         kiconv_hkscs_utf8.h     \
 310         kiconv_ja.h             \
 311         kiconv_ja_jis_to_unicode.h      \
 312         kiconv_ja_unicode_to_jis.h      \
 313         kiconv_ko.h             \
 314         kiconv_latin1.h         \
 315         kiconv_sc.h             \
 316         kiconv_tc.h             \
 317         kiconv_uhc_utf8.h       \
 318         kiconv_utf8_big5.h      \
 319         kiconv_utf8_cp950hkscs.h        \
 320         kiconv_utf8_euckr.h     \
 321         kiconv_utf8_euctw.h     \
 322         kiconv_utf8_gb18030.h   \
 323         kiconv_utf8_gb2312.h    \
 324         kiconv_utf8_hkscs.h     \
 325         kiconv_utf8_uhc.h       \
 326         kidmap.h                \
 327         klpd.h                  \
 328         klwp.h                  \
 329         kmdb.h                  \
 330         kmem.h                  \
 331         kmem_impl.h             \
 332         kobj.h                  \
 333         kobj_impl.h             \
 334         ksocket.h               \
 335         kstat.h                 \
 336         kstr.h                  \
 337         ksyms.h                 \
 338         ksynch.h                \
 339         ldterm.h                \
 340         lgrp.h                  \
 341         lgrp_user.h             \
 342         libc_kernel.h           \
 343         link.h                  \
 344         list.h                  \
 345         list_impl.h             \
 346         llc1.h                  \
 347         loadavg.h               \
 348         lock.h                  \
 349         lockfs.h                \
 350         lockstat.h              \
 351         lofi.h                  \
 352         lofi_impl.h             \
 353         log.h                   \
 354         logindmux.h             \
 355         logindmux_impl.h        \
 356         lwp.h                   \
 357         lwp_timer_impl.h        \
 358         lwp_upimutex_impl.h     \
 359         lpif.h                  \
 360         mac.h                   \
 361         mac_client.h            \
 362         mac_client_impl.h       \
 363         mac_ether.h             \
 364         mac_flow.h              \
 365         mac_flow_impl.h         \
 366         mac_impl.h              \
 367         mac_provider.h          \
 368         mac_soft_ring.h         \
 369         mac_stat.h              \
 370         machelf.h               \
 371         map.h                   \
 372         md4.h                   \
 373         md5.h                   \
 374         md5_consts.h            \
 375         mdi_impldefs.h          \
 376         mem.h                   \
 377         mem_config.h            \
 378         memlist.h               \
 379         mkdev.h                 \
 380         mhd.h                   \
 381         mii.h                   \
 382         miiregs.h               \
 383         mixer.h                 \
 384         mman.h                  \
 385         mmapobj.h               \
 386         mntent.h                \
 387         mntio.h                 \
 388         mnttab.h                \
 389         modctl.h                \
 390         mode.h                  \
 391         model.h                 \
 392         modhash.h               \
 393         modhash_impl.h          \
 394         mount.h                 \
 395         mouse.h                 \
 396         msacct.h                \
 397         msg.h                   \
 398         msg_impl.h              \
 399         msio.h                  \
 400         msreg.h                 \
 401         mtio.h                  \
 402         multidata.h             \
 403         multidata_impl.h        \
 404         mutex.h                 \
 405         nbmlock.h               \
 406         ndifm.h                 \
 407         ndi_impldefs.h          \
 408         net80211.h              \
 409         net80211_amrr.h         \
 410         net80211_crypto.h       \
 411         net80211_ht.h           \
 412         net80211_proto.h        \
 413         netconfig.h             \
 414         neti.h                  \
 415         netstack.h              \
 416         nexusdefs.h             \
 417         note.h                  \
 418         null.h                  \
 419         nvpair.h                \
 420         nvpair_impl.h           \
 421         objfs.h                 \
 422         objfs_impl.h            \
 423         ontrap.h                \
 424         open.h                  \
 425         openpromio.h            \
 426         panic.h                 \
 427         param.h                 \
 428         pathconf.h              \
 429         pathname.h              \
 430         pattr.h                 \
 431         queue.h                 \
 432         serializer.h            \
 433         pbio.h                  \
 434         pccard.h                \
 435         pci.h                   \
 436         pcie.h                  \
 437         pci_impl.h              \
 438         pci_tools.h             \
 439         pcmcia.h                \
 440         pctypes.h               \
 441         pfmod.h                 \
 442         pg.h                    \
 443         pghw.h                  \
 444         physmem.h               \
 445         pkp_hash.h              \
 446         pm.h                    \
 447         policy.h                \
 448         poll.h                  \
 449         poll_impl.h             \
 450         pool.h                  \
 451         pool_impl.h             \
 452         pool_pset.h             \
 453         port.h                  \
 454         port_impl.h             \
 455         port_kernel.h           \
 456         portif.h                \
 457         ppmio.h                 \
 458         pppt_ic_if.h            \
 459         pppt_ioctl.h            \
 460         priocntl.h              \
 461         priv.h                  \
 462         priv_impl.h             \
 463         prnio.h                 \
 464         proc.h                  \
 465         processor.h             \
 466         procfs.h                \
 467         procset.h               \
 468         project.h               \
 469         protosw.h               \
 470         prsystm.h               \
 471         pset.h                  \
 472         pshot.h                 \
 473         ptem.h                  \
 474         ptms.h                  \
 475         ptyvar.h                \
 476         raidioctl.h             \
 477         ramdisk.h               \
 478         random.h                \
 479         rctl.h                  \
 480         rctl_impl.h             \
 481         rds.h                   \
 482         reboot.h                \
 483         refstr.h                \
 484         refstr_impl.h           \
 485         resource.h              \
 486         rlioctl.h               \
 487         rt.h                    \
 488         rtpriocntl.h            \
 489         rwlock.h                \
 490         rwlock_impl.h           \
 491         rwstlock.h              \
 492         sad.h                   \
 493         schedctl.h              \
 494         sdt.h                   \
 495         secflags.h              \
 496         select.h                \
 497         sem.h                   \
 498         sem_impl.h              \
 499         sema_impl.h             \
 500         semaphore.h             \
 501         sendfile.h              \
 502         ser_sync.h              \
 503         session.h               \
 504         sha1.h                  \
 505         sha1_consts.h           \
 506         sha2.h                  \
 507         sha2_consts.h           \
 508         share.h                 \
 509         shm.h                   \
 510         shm_impl.h              \
 511         sid.h                   \
 512         siginfo.h               \
 513         signal.h                \
 514         signalfd.h              \
 515         skein.h                 \
 516         sleepq.h                \
 517         smbios.h                \
 518         smbios_impl.h           \
 519         sobject.h               \
 520         socket.h                \
 521         socket_impl.h           \
 522         socket_proto.h          \
 523         socketvar.h             \
 524         sockfilter.h            \
 525         sockio.h                \
 526         soundcard.h             \
 527         squeue.h                \
 528         squeue_impl.h           \
 529         srn.h                   \
 530         sservice.h              \
 531         stat.h                  \
 532         statfs.h                \
 533         statvfs.h               \
 534         stdbool.h               \
 535         stddef.h                \
 536         stdint.h                \
 537         stermio.h               \
 538         stmf.h                  \
 539         stmf_defines.h          \
 540         stmf_ioctl.h            \
 541         stmf_sbd_ioctl.h        \
 542         stream.h                \
 543         strft.h                 \
 544         strlog.h                \
 545         strmdep.h               \
 546         stropts.h               \
 547         strredir.h              \
 548         strstat.h               \
 549         strsubr.h               \
 550         strsun.h                \
 551         strtty.h                \
 552         sunddi.h                \
 553         sunldi.h                \
 554         sunldi_impl.h           \
 555         sunmdi.h                \
 556         sunndi.h                \
 557         sunos_dhcp_class.h      \
 558         sunpm.h                 \
 559         suntpi.h                \
 560         suntty.h                \
 561         swap.h                  \
 562         synch.h                 \
 563         sysdc.h                 \
 564         sysdc_impl.h            \
 565         syscall.h               \
 566         sysconf.h               \
 567         sysconfig.h             \
 568         sysevent.h              \
 569         sysevent_impl.h         \
 570         sysinfo.h               \
 571         syslog.h                \
 572         sysmacros.h             \
 573         sysmsg_impl.h           \
 574         systeminfo.h            \
 575         systm.h                 \
 576         task.h                  \
 577         taskq.h                 \
 578         taskq_impl.h            \
 579         t_kuser.h               \
 580         t_lock.h                \
 581         telioctl.h              \
 582         termio.h                \
 583         termios.h               \
 584         termiox.h               \
 585         thread.h                \
 586         ticlts.h                \
 587         ticots.h                \
 588         ticotsord.h             \
 589         tihdr.h                 \
 590         time.h                  \
 591         time_impl.h             \
 592         time_std_impl.h         \
 593         timeb.h                 \
 594         timer.h                 \
 595         timerfd.h               \
 596         times.h                 \
 597         timex.h                 \
 598         timod.h                 \
 599         tirdwr.h                \
 600         tiuser.h                \
 601         tl.h                    \
 602         tnf.h                   \
 603         tnf_com.h               \
 604         tnf_probe.h             \
 605         tnf_writer.h            \
 606         todio.h                 \
 607         tpicommon.h             \
 608         ts.h                    \
 609         tspriocntl.h            \
 610         ttcompat.h              \
 611         ttold.h                 \
 612         tty.h                   \
 613         ttychars.h              \
 614         ttydev.h                \
 615         tuneable.h              \
 616         turnstile.h             \
 617         types.h                 \
 618         types32.h               \
 619         tzfile.h                \
 620         u8_textprep.h           \
 621         u8_textprep_data.h      \
 622         uadmin.h                \
 623         ucred.h                 \
 624         uio.h                   \
 625         ulimit.h                \
 626         un.h                    \
 627         unistd.h                \
 628         user.h                  \
 629         ustat.h                 \
 630         utime.h                 \
 631         utsname.h               \
 632         utssys.h                \
 633         uuid.h                  \
 634         va_impl.h               \
 635         va_list.h               \
 636         var.h                   \
 637         varargs.h               \
 638         vfs.h                   \
 639         vfs_opreg.h             \
 640         vfstab.h                \
 641         vgareg.h                \
 642         videodev2.h             \
 643         visual_io.h             \
 644         vlan.h                  \
 645         vm.h                    \
 646         vm_usage.h              \
 647         vmem.h                  \
 648         vmem_impl.h             \
 649         vmsystm.h               \
 650         vnic.h                  \
 651         vnic_impl.h             \
 652         vnode.h                 \
 653         vscan.h                 \
 654         vtoc.h                  \
 655         vtrace.h                \
 656         vuid_event.h            \
 657         vuid_wheel.h            \
 658         vuid_queue.h            \
 659         vuid_state.h            \
 660         vuid_store.h            \
 661         wait.h                  \
 662         waitq.h                 \
 663         wanboot_impl.h          \
 664         watchpoint.h            \
 665         winlockio.h             \
 666         zcons.h                 \
 667         zone.h                  \
 668         xti_inet.h              \
 669         xti_osi.h               \
 670         xti_xtiopt.h            \
 671         zmod.h
 672 
 673 HDRS=                           \
 674         $(GENHDRS)              \
 675         $(CHKHDRS)
 676 
 677 AUDIOHDRS=                      \
 678         ac97.h                  \
 679         audio_common.h          \
 680         audio_driver.h          \
 681         audio_oss.h             \
 682         g711.h
 683 
 684 AVHDRS=                         \
 685         iec61883.h
 686 
 687 BSCHDRS=                        \
 688         bscbus.h                \
 689         bscv_impl.h             \
 690         lom_ebuscodes.h         \
 691         lom_io.h                \
 692         lom_priv.h              \
 693         lombus.h
 694 
 695 MDESCHDRS=                      \
 696         mdesc.h                 \
 697         mdesc_impl.h            
 698 
 699 CPUDRVHDRS=                     \
 700         cpudrv.h
 701 
 702 CRYPTOHDRS=                     \
 703         elfsign.h               \
 704         ioctl.h                 \
 705         ioctladmin.h            \
 706         common.h                \
 707         impl.h                  \
 708         spi.h                   \
 709         api.h                   \
 710         ops_impl.h              \
 711         sched_impl.h
 712 
 713 DCAMHDRS=                       \
 714         dcam1394_io.h
 715 
 716 IBHDRS=                 \
 717         ib_types.h      \
 718         ib_pkt_hdrs.h
 719 
 720 IBTLHDRS=               \
 721         ibtl_types.h    \
 722         ibtl_status.h   \
 723         ibti.h          \
 724         ibti_cm.h       \
 725         ibci.h          \
 726         ibti_common.h   \
 727         ibvti.h         \
 728         ibtl_ci_types.h
 729 
 730 IBTLIMPLHDRS=           \
 731         ibtl_util.h
 732 
 733 IBNEXHDRS=              \
 734         ibnex_devctl.h
 735 
 736 IBMFHDRS=               \
 737         ibmf.h          \
 738         ibmf_msg.h      \
 739         ibmf_saa.h      \
 740         ibmf_utils.h
 741 
 742 IBMGTHDRS=              \
 743         ib_dm_attr.h    \
 744         ib_mad.h        \
 745         sm_attr.h       \
 746         sa_recs.h
 747 
 748 IBDHDRS=                \
 749         ibd.h
 750 
 751 OFHDRS=                 \
 752         ofa_solaris.h   \
 753         ofed_kernel.h
 754 
 755 RDMAHDRS=               \
 756         ib_addr.h       \
 757         ib_user_mad.h   \
 758         ib_user_sa.h    \
 759         ib_user_verbs.h \
 760         ib_verbs.h      \
 761         rdma_cm.h       \
 762         rdma_user_cm.h
 763 
 764 SOL_UVERBSHDRS=         \
 765         sol_uverbs.h    \
 766         sol_uverbs2ucma.h       \
 767         sol_uverbs_comp.h       \
 768         sol_uverbs_hca.h        \
 769         sol_uverbs_qp.h         \
 770         sol_uverbs_event.h
 771 
 772 SOL_UMADHDRS=           \
 773         sol_umad.h
 774 
 775 SOL_UCMAHDRS=           \
 776         sol_ucma.h      \
 777         sol_rdma_user_cm.h
 778 
 779 SOL_OFSHDRS=            \
 780         sol_cma.h       \
 781         sol_ib_cma.h    \
 782         sol_ofs_common.h        \
 783         sol_kverb_impl.h
 784 
 785 TAVORHDRS=              \
 786         tavor_ioctl.h
 787 
 788 HERMONHDRS=             \
 789         hermon_ioctl.h
 790 
 791 MLNXHDRS=               \
 792         mlnx_umap.h
 793 
 794 IDMHDRS=                \
 795         idm.h           \
 796         idm_impl.h      \
 797         idm_so.h        \
 798         idm_text.h      \
 799         idm_transport.h \
 800         idm_conn_sm.h
 801 
 802 ISCSITHDRS=             \
 803         radius_packet.h         \
 804         radius_protocol.h       \
 805         chap.h                  \
 806         isns_protocol.h         \
 807         iscsi_if.h              \
 808         iscsit_common.h
 809 
 810 ISOHDRS=                        \
 811         signal_iso.h
 812 
 813 FMHDRS=                         \
 814         protocol.h              \
 815         util.h
 816 
 817 FMFSHDRS=                       \
 818         zfs.h
 819 
 820 FMIOHDRS=                       \
 821         ddi.h                   \
 822         disk.h                  \
 823         pci.h                   \
 824         scsi.h                  \
 825         sun4upci.h              \
 826         opl_mc_fm.h
 827 
 828 FSHDRS=                         \
 829         autofs.h                \
 830         decomp.h                \
 831         dv_node.h               \
 832         sdev_impl.h             \
 833         fifonode.h              \
 834         hsfs_isospec.h          \
 835         hsfs_node.h             \
 836         hsfs_rrip.h             \
 837         hsfs_spec.h             \
 838         hsfs_susp.h             \
 839         lofs_info.h             \
 840         lofs_node.h             \
 841         mntdata.h               \
 842         namenode.h              \
 843         pc_dir.h                \
 844         pc_fs.h                 \
 845         pc_label.h              \
 846         pc_node.h               \
 847         pxfs_ki.h               \
 848         snode.h                 \
 849         swapnode.h              \
 850         tmp.h                   \
 851         tmpnode.h               \
 852         udf_inode.h             \
 853         udf_volume.h            \
 854         ufs_acl.h               \
 855         ufs_bio.h               \
 856         ufs_filio.h             \
 857         ufs_fs.h                \
 858         ufs_fsdir.h             \
 859         ufs_inode.h             \
 860         ufs_lockfs.h            \
 861         ufs_log.h               \
 862         ufs_mount.h             \
 863         ufs_panic.h             \
 864         ufs_prot.h              \
 865         ufs_quota.h             \
 866         ufs_snap.h              \
 867         ufs_trans.h             \
 868         zfs.h                   \
 869         zut.h
 870 
 871 SCSIHDRS=               \
 872         scsi.h          \
 873         scsi_address.h  \
 874         scsi_ctl.h      \
 875         scsi_fm.h       \
 876         scsi_names.h    \
 877         scsi_params.h   \
 878         scsi_pkt.h      \
 879         scsi_resource.h \
 880         scsi_types.h    \
 881         scsi_watch.h
 882 
 883 SCSICONFHDRS=           \
 884         autoconf.h      \
 885         device.h
 886 
 887 SCSIGENHDRS=            \
 888         commands.h      \
 889         dad_mode.h      \
 890         inquiry.h       \
 891         message.h       \
 892         mode.h          \
 893         persist.h       \
 894         sense.h         \
 895         sff_frames.h    \
 896         smp_frames.h    \
 897         status.h
 898 
 899 SCSIIMPLHDRS=           \
 900         commands.h      \
 901         inquiry.h       \
 902         mode.h          \
 903         scsi_reset_notify.h \
 904         scsi_sas.h      \
 905         sense.h         \
 906         services.h      \
 907         smp_transport.h \
 908         spc3_types.h    \
 909         status.h        \
 910         transport.h     \
 911         types.h         \
 912         uscsi.h         \
 913         usmp.h
 914 
 915 SCSITARGETSHDRS=        \
 916         ses.h           \
 917         sesio.h         \
 918         sgendef.h       \
 919         stdef.h         \
 920         sddef.h         \
 921         smp.h
 922 
 923 SCSIADHDRS=
 924 
 925 SCSICADHDRS=
 926 
 927 SCSIISCSIHDRS=          \
 928         iscsi_door.h    \
 929         iscsi_if.h
 930 
 931 SCSIVHCIHDRS=           \
 932         scsi_vhci.h     \
 933         mpapi_impl.h    \
 934         mpapi_scsi_vhci.h
 935 
 936 SDCARDHDRS=             \
 937         sda.h           \
 938         sda_impl.h      \
 939         sda_ioctl.h
 940 
 941 FC4HDRS=                        \
 942         fc_transport.h  \
 943         linkapp.h       \
 944         fc.h            \
 945         fcp.h           \
 946         fcal_transport.h \
 947         fcal.h          \
 948         fcal_linkapp.h  \
 949         fcio.h
 950 
 951 FCHDRS=                 \
 952         fc.h            \
 953         fcio.h          \
 954         fc_types.h      \
 955         fc_appif.h
 956 
 957 FCIMPLHDRS=             \
 958         fc_error.h      \
 959         fcph.h
 960 
 961 FCULPHDRS=              \
 962         fcp_util.h      \
 963         fcsm.h
 964 
 965 SATAGENHDRS=            \
 966         sata_hba.h      \
 967         sata_defs.h     \
 968         sata_cfgadm.h
 969 
 970 SYSEVENTHDRS=           \
 971         ap_driver.h     \
 972         dev.h           \
 973         domain.h        \
 974         dr.h            \
 975         env.h           \
 976         eventdefs.h     \
 977         ipmp.h          \
 978         pwrctl.h        \
 979         vrrp.h
 980 
 981 CONTRACTHDRS=           \
 982         process.h       \
 983         process_impl.h  \
 984         device.h        \
 985         device_impl.h
 986 
 987 USBHDRS=        \
 988         usba.h  \
 989         usbai.h
 990 
 991 USBAUDHDRS=           \
 992         usb_audio.h
 993 
 994 USBHUBDHDRS=            \
 995         hub.h           \
 996         hubd_impl.h
 997 
 998 USBHIDHDRS=             \
 999         hid.h
1000 
1001 USBMSHDRS=              \
1002         usb_bulkonly.h  \
1003         usb_cbi.h
1004 
1005 USBPRNHDRS=           \
1006         usb_printer.h
1007 
1008 USBCDCHDRS=             \
1009         usb_cdc.h
1010 
1011 USBVIDHDRS=           \
1012         usbvc.h
1013 
1014 USBWCMHDRS=             \
1015         usbwcm.h
1016 
1017 UGENHDRS=           \
1018         usb_ugen.h
1019 
1020 HOTPLUGHDRS=    \
1021         hpcsvc.h        \
1022         hpctrl.h
1023 
1024 HOTPLUGPCIHDRS= \
1025         pcicfg.h        \
1026         pcihp.h
1027 
1028 RSMHDRS= \
1029         rsm.h   \
1030         rsm_common.h    \
1031         rsmapi_common.h \
1032         rsmpi.h \
1033         rsmpi_driver.h  \
1034         rsmka_path_int.h
1035 
1036 TSOLHDRS=               \
1037         label.h         \
1038         label_macro.h   \
1039         priv.h          \
1040         tndb.h          \
1041         tsyscall.h
1042 
1043 I1394HDRS=              \
1044         cmd1394.h       \
1045         id1394.h        \
1046         ieee1212.h      \
1047         ieee1394.h      \
1048         ixl1394.h       \
1049         s1394_impl.h    \
1050         t1394.h
1051 
1052 # "cmdk" headers used on sparc
1053 SDKTPHDRS=              \
1054         dadkio.h        \
1055         fdisk.h
1056 
1057 # "cmdk" headers used on i386
1058 DKTPHDRS=               \
1059         altsctr.h       \
1060         bbh.h           \
1061         cm.h            \
1062         cmdev.h         \
1063         cmdk.h          \
1064         cmpkt.h         \
1065         controller.h    \
1066         dadev.h         \
1067         dadk.h          \
1068         dadkio.h        \
1069         fctypes.h       \
1070         fdisk.h         \
1071         flowctrl.h      \
1072         gda.h           \
1073         quetypes.h      \
1074         queue.h         \
1075         tgcom.h         \
1076         tgdk.h
1077 
1078 # "pc" header files used on i386
1079 PCHDRS=                 \
1080         avintr.h        \
1081         dma_engine.h    \
1082         i8272A.h        \
1083         pcic_reg.h      \
1084         pcic_var.h      \
1085         pic.h           \
1086         pit.h           \
1087         rtc.h
1088 
1089 NXGEHDRS=                       \
1090         nxge.h                  \
1091         nxge_common.h           \
1092         nxge_common_impl.h      \
1093         nxge_defs.h             \
1094         nxge_hw.h               \
1095         nxge_impl.h             \
1096         nxge_ipp.h              \
1097         nxge_ipp_hw.h           \
1098         nxge_mac.h              \
1099         nxge_mac_hw.h           \
1100         nxge_fflp.h             \
1101         nxge_fflp_hw.h          \
1102         nxge_mii.h              \
1103         nxge_rxdma.h            \
1104         nxge_rxdma_hw.h         \
1105         nxge_txc.h              \
1106         nxge_txc_hw.h           \
1107         nxge_txdma.h            \
1108         nxge_txdma_hw.h         \
1109         nxge_virtual.h          \
1110         nxge_espc.h
1111 
1112 include Makefile.syshdrs
1113 
1114 dcam/%.check:   dcam/%.h
1115         $(DOT_H_CHECK)
1116 
1117 CHECKHDRS=                                              \
1118         $($(MACH)_HDRS:%.h=%.check)                     \
1119         $(AUDIOHDRS:%.h=audio/%.check)                  \
1120         $(AVHDRS:%.h=av/%.check)                        \
1121         $(BSCHDRS:%.h=%.check)                          \
1122         $(CHKHDRS:%.h=%.check)                          \
1123         $(CPUDRVHDRS:%.h=%.check)                       \
1124         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1125         $(DCAMHDRS:%.h=dcam/%.check)                    \
1126         $(FC4HDRS:%.h=fc4/%.check)                      \
1127         $(FCHDRS:%.h=fibre-channel/%.check)             \
1128         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1129         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1130         $(IBHDRS:%.h=ib/%.check)                        \
1131         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1132         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1133         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1134         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1135         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1136         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1137         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1138         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1139         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1140         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1141         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1142         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1143         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1144         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1145         $(IDMHDRS:%.h=idm/%.check)                      \
1146         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1147         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1148         $(ISOHDRS:%.h=iso/%.check)                      \
1149         $(FMHDRS:%.h=fm/%.check)                        \
1150         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1151         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1152         $(FSHDRS:%.h=fs/%.check)                        \
1153         $(SCSIHDRS:%.h=scsi/%.check)                    \
1154         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1155         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1156         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1157         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1158         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1159         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1160         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1161         $(SATAGENHDRS:%.h=sata/%.check)                 \
1162         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1163         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1164         $(CONTRACTHDRS:%.h=contract/%.check)            \
1165         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1166         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1167         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1168         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1169         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1170         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1171         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1172         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1173         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1174         $(USBHDRS:%.h=usb/%.check)                      \
1175         $(I1394HDRS:%.h=1394/%.check)                   \
1176         $(RSMHDRS:%.h=rsm/%.check)                      \
1177         $(TSOLHDRS:%.h=tsol/%.check)                    \
1178         $(NXGEHDRS:%.h=nxge/%.check)
1179 
1180 
1181 .KEEP_STATE:
1182 
1183 .PARALLEL:                      \
1184         $(CHECKHDRS)            \
1185         $(ROOTHDRS)             \
1186         $(ROOTAUDHDRS)          \
1187         $(ROOTAVHDRS)           \
1188         $(ROOTCRYPTOHDRS)       \
1189         $(ROOTDCAMHDRS)         \
1190         $(ROOTISOHDRS)          \
1191         $(ROOTIDMHDRS)          \
1192         $(ROOTISCSIHDRS)        \
1193         $(ROOTISCSITHDRS)       \
1194         $(ROOTFC4HDRS)          \
1195         $(ROOTFCHDRS)           \
1196         $(ROOTFCIMPLHDRS)       \
1197         $(ROOTFCULPHDRS)        \
1198         $(ROOTFMHDRS)           \
1199         $(ROOTFMIOHDRS)         \
1200         $(ROOTFMFSHDRS)         \
1201         $(ROOTFSHDRS)           \
1202         $(ROOTIBDHDRS)          \
1203         $(ROOTIBHDRS)           \
1204         $(ROOTIBTLHDRS)         \
1205         $(ROOTIBTLIMPLHDRS)     \
1206         $(ROOTIBNEXHDRS)        \
1207         $(ROOTIBMGTHDRS)        \
1208         $(ROOTIBMFHDRS)         \
1209         $(ROOTOFHDRS)           \
1210         $(ROOTRDMAHDRS)         \
1211         $(ROOTSOL_OFSHDRS)      \
1212         $(ROOTSOL_UMADHDRS)     \
1213         $(ROOTSOL_UVERBSHDRS)   \
1214         $(ROOTSOL_UCMAHDRS)     \
1215         $(ROOTTAVORHDRS)        \
1216         $(ROOTHERMONHDRS)       \
1217         $(ROOTMLNXHDRS)         \
1218         $(ROOTSCSIHDRS)         \
1219         $(ROOTSCSIADHDRS)       \
1220         $(ROOTSCSICONFHDRS)     \
1221         $(ROOTSCSIISCSIHDRS)    \
1222         $(ROOTSCSIGENHDRS)      \
1223         $(ROOTSCSIIMPLHDRS)     \
1224         $(ROOTSCSIVHCIHDRS)     \
1225         $(ROOTSDCARDHDRS)       \
1226         $(ROOTSYSEVENTHDRS)     \
1227         $(ROOTCONTRACTHDRS)     \
1228         $(ROOTUSBHDRS)          \
1229         $(ROOTUWBHDRS)          \
1230         $(ROOTUWBAHDRS)         \
1231         $(ROOTUSBAUDHDRS)       \
1232         $(ROOTUSBHUBDHDRS)      \
1233         $(ROOTUSBHIDHDRS)       \
1234         $(ROOTUSBHRCHDRS)       \
1235         $(ROOTUSBMSHDRS)        \
1236         $(ROOTUSBPRNHDRS)       \
1237         $(ROOTUSBCDCHDRS)       \
1238         $(ROOTUSBVIDHDRS)       \
1239         $(ROOTUSBWCMHDRS)       \
1240         $(ROOTUGENHDRS)         \
1241         $(ROOT1394HDRS)         \
1242         $(ROOTHOTPLUGHDRS)      \
1243         $(ROOTHOTPLUGPCIHDRS)   \
1244         $(ROOTRSMHDRS)          \
1245         $(ROOTTSOLHDRS)         \
1246         $($(MACH)_ROOTHDRS)
1247 
1248 
1249 install_h:                      \
1250         $(ROOTDIRS)             \
1251         .WAIT                   \
1252         $(ROOTHDRS)             \
1253         $(ROOTAUDHDRS)          \
1254         $(ROOTAVHDRS)           \
1255         $(ROOTCRYPTOHDRS)       \
1256         $(ROOTDCAMHDRS)         \
1257         $(ROOTISOHDRS)          \
1258         $(ROOTIDMHDRS)          \
1259         $(ROOTISCSIHDRS)        \
1260         $(ROOTISCSITHDRS)       \
1261         $(ROOTFC4HDRS)          \
1262         $(ROOTFCHDRS)           \
1263         $(ROOTFCIMPLHDRS)       \
1264         $(ROOTFCULPHDRS)        \
1265         $(ROOTFMHDRS)           \
1266         $(ROOTFMFSHDRS)         \
1267         $(ROOTFMIOHDRS)         \
1268         $(ROOTFSHDRS)           \
1269         $(ROOTIBDHDRS)          \
1270         $(ROOTIBHDRS)           \
1271         $(ROOTIBTLHDRS)         \
1272         $(ROOTIBTLIMPLHDRS)     \
1273         $(ROOTIBNEXHDRS)        \
1274         $(ROOTIBMGTHDRS)        \
1275         $(ROOTIBMFHDRS)         \
1276         $(ROOTOFHDRS)           \
1277         $(ROOTRDMAHDRS)         \
1278         $(ROOTSOL_OFSHDRS)      \
1279         $(ROOTSOL_UMADHDRS)     \
1280         $(ROOTSOL_UVERBSHDRS)   \
1281         $(ROOTSOL_UCMAHDRS)     \
1282         $(ROOTTAVORHDRS)        \
1283         $(ROOTHERMONHDRS)       \
1284         $(ROOTMLNXHDRS)         \
1285         $(ROOTSCSIHDRS)         \
1286         $(ROOTSCSIADHDRS)       \
1287         $(ROOTSCSIISCSIHDRS)    \
1288         $(ROOTSCSICONFHDRS)     \
1289         $(ROOTSCSIGENHDRS)      \
1290         $(ROOTSCSIIMPLHDRS)     \
1291         $(ROOTSCSIVHCIHDRS)     \
1292         $(ROOTSDCARDHDRS)       \
1293         $(ROOTSYSEVENTHDRS)     \
1294         $(ROOTCONTRACTHDRS)     \
1295         $(ROOTUWBHDRS)          \
1296         $(ROOTUWBAHDRS)         \
1297         $(ROOTUSBHDRS)          \
1298         $(ROOTUSBAUDHDRS)       \
1299         $(ROOTUSBHUBDHDRS)      \
1300         $(ROOTUSBHIDHDRS)       \
1301         $(ROOTUSBHRCHDRS)       \
1302         $(ROOTUSBMSHDRS)        \
1303         $(ROOTUSBPRNHDRS)       \
1304         $(ROOTUSBCDCHDRS)       \
1305         $(ROOTUSBVIDHDRS)       \
1306         $(ROOTUSBWCMHDRS)       \
1307         $(ROOTUGENHDRS)         \
1308         $(ROOT1394HDRS)         \
1309         $(ROOTHOTPLUGHDRS)      \
1310         $(ROOTHOTPLUGPCIHDRS)   \
1311         $(ROOTRSMHDRS)          \
1312         $(ROOTTSOLHDRS)         \
1313         $($(MACH)_ROOTHDRS)
1314 
1315 all_h: $(GENHDRS)
1316 
1317 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1318         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1319 
1320 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1321         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1322 
1323 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1324         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1325 
1326 clean:
1327         $(RM) $(GENHDRS)
1328 
1329 clobber: clean
1330 
1331 check:  $(CHECKHDRS)
1332 
1333 FRC: